• Brad King's avatar
    Add \-continuation to CMake language quoted arguments · efcf318f
    Brad King authored
    Teach the CMake language lexer to treat the \-LF pair terminating a
    line ending in an odd number of backslashes inside a quoted argument
    as a continuation.  Drop the pair from the returned quoted argument
    token text.  This will allow long lines inside quoted argument
    strings to be divided across multiple lines in the source file.
    It will also allow quoted argument text to start on the line after
    the opening quote.  For example, the code:
    
     set(x "\
     ...")
    
    sets variable "x" to the value "..." with no opening newline.
    
    Previously an odd number of backslashes at the end of a line inside
    a quoted argument would put a \-LF pair (or a \-CR pair) literally
    in the argument.  Then the command-argument evaluator would complain
    that the \-escape sequence is invalid.  Therefore this syntax is
    available to use without changing behavior of valid existing code.
    
    Teach the RunCMake.Syntax test to cover cases of quoted arguments
    with lines ending in \, \\, and \\\.  Odd counts are continuations.
    efcf318f
Name
Last commit
Last update
..
CMP0004 Loading commit data...
CMP0019 Loading commit data...
CMP0022 Loading commit data...
CMP0026 Loading commit data...
CMP0027 Loading commit data...
CMP0028 Loading commit data...
CTest Loading commit data...
CheckModules Loading commit data...
CompatibleInterface Loading commit data...
CompilerChange Loading commit data...
Configure Loading commit data...
DisallowedCommands Loading commit data...
ExportWithoutLanguage Loading commit data...
ExternalData Loading commit data...
FPHSA Loading commit data...
File_Generate Loading commit data...
GeneratorExpression Loading commit data...
GeneratorToolset Loading commit data...
IncompatibleQt Loading commit data...
Languages Loading commit data...
ObjectLibrary Loading commit data...
ObsoleteQtMacros Loading commit data...
PositionIndependentCode Loading commit data...
SolutionGlobalSections Loading commit data...
Syntax Loading commit data...
TargetPolicies Loading commit data...
TargetPropertyGeneratorExpressions Loading commit data...
VisibilityPreset Loading commit data...
add_dependencies Loading commit data...
alias_targets Loading commit data...
build_command Loading commit data...
find_package Loading commit data...
get_filename_component Loading commit data...
if Loading commit data...
include Loading commit data...
include_directories Loading commit data...
include_external_msproject Loading commit data...
interface_library Loading commit data...
list Loading commit data...
message Loading commit data...
string Loading commit data...
target_link_libraries Loading commit data...
try_compile Loading commit data...
variable_watch Loading commit data...
CMakeLists.txt Loading commit data...
RunCMake.cmake Loading commit data...