mirror of
https://github.com/reactos/CMake.git
synced 2025-01-08 04:00:27 +00:00
58e524165d
Teach the lexer to return tokens for whitespace. Teach the parser to tolerate the space tokens where whitespace is allowed. Also teach the parser to diagnose and warn about cases of quoted arguments followed immediately by another argument. This was accidentally allowed previously, so we only warn. Update the RunCMake.Syntax test case StringNoSpace expected stderr to include the warnings.
20 lines
587 B
Plaintext
20 lines
587 B
Plaintext
CMake Warning \(dev\) at CMakeLists.txt:3 \(include\):
|
|
Syntax Warning in cmake code at
|
|
|
|
.*/Tests/RunCMake/Syntax/StringNoSpace.cmake:2:28
|
|
|
|
Argument not separated from preceding token by whitespace.
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
|
|
|
CMake Warning \(dev\) at CMakeLists.txt:3 \(include\):
|
|
Syntax Warning in cmake code at
|
|
|
|
.*/Tests/RunCMake/Syntax/StringNoSpace.cmake:2:31
|
|
|
|
Argument not separated from preceding token by whitespace.
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
|
|
|
\[1 \${var} \\n 4\]
|
|
\[x\]
|
|
\[y\]$
|