summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-15 12:22:15 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-15 13:00:34 (GMT)
commit9040ec91173824b27dd946d7bd36cc9c07268d74 (patch)
tree51ccc551976d89c7b4a9deff22308ce8afec388a /Source/cmListFileCache.cxx
parentc50f7ede200e2a7cd02d59117ac93543b602885c (diff)
downloadCMake-9040ec91173824b27dd946d7bd36cc9c07268d74.zip
CMake-9040ec91173824b27dd946d7bd36cc9c07268d74.tar.gz
CMake-9040ec91173824b27dd946d7bd36cc9c07268d74.tar.bz2
Do not warn about left paren not separated by a space
Since commit 58e52416 (Warn about arguments not separated by whitespace, 2013-02-16) we warn about arguments not separated by spaces. Loosen the warning to not complain about left parens not separated by spaces from the preceding token. This is common in code like "if(NOT(X))". Teach the RunCMake.Syntax test to cover cases of left parens not separated by spaces and check that no warning appears.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index c02866c..898f379 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -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)
{