Merge topic 'cmake-syntax'
9040ec9 Do not warn about left paren not separated by a space
This commit is contained in:
commit
8da09f6ee1
@ -287,8 +287,8 @@ bool cmListFileParser::ParseFunction(const char* name, long line)
|
||||
if(token->type == cmListFileLexer_Token_ParenLeft)
|
||||
{
|
||||
parenDepth++;
|
||||
this->AddArgument(token, cmListFileArgument::Unquoted);
|
||||
this->Separation = SeparationOkay;
|
||||
this->AddArgument(token, cmListFileArgument::Unquoted);
|
||||
}
|
||||
else if(token->type == cmListFileLexer_Token_ParenRight)
|
||||
{
|
||||
|
1
Tests/RunCMake/Syntax/ParenNoSpace-stderr.txt
Normal file
1
Tests/RunCMake/Syntax/ParenNoSpace-stderr.txt
Normal file
@ -0,0 +1 @@
|
||||
^$
|
2
Tests/RunCMake/Syntax/ParenNoSpace-stdout.txt
Normal file
2
Tests/RunCMake/Syntax/ParenNoSpace-stdout.txt
Normal file
@ -0,0 +1,2 @@
|
||||
-- unquoted\(unquoted\)
|
||||
-- quoted\(quoted\)
|
2
Tests/RunCMake/Syntax/ParenNoSpace.cmake
Normal file
2
Tests/RunCMake/Syntax/ParenNoSpace.cmake
Normal file
@ -0,0 +1,2 @@
|
||||
message(STATUS unquoted(unquoted))
|
||||
message(STATUS "quoted"("quoted"))
|
@ -11,6 +11,7 @@ run_cmake(String1)
|
||||
run_cmake(StringNoSpace)
|
||||
run_cmake(Unquoted0)
|
||||
run_cmake(Unquoted1)
|
||||
run_cmake(ParenNoSpace)
|
||||
run_cmake(UnterminatedCall1)
|
||||
run_cmake(UnterminatedCall2)
|
||||
run_cmake(UnterminatedString)
|
||||
|
Loading…
x
Reference in New Issue
Block a user