summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2017-03-20 20:49:59 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-22 12:42:35 (GMT)
commitedac95b955afdea2d129b32b029bf845dc29cb71 (patch)
treecf96ba88c3e04fe23daa131817e92dd51515561a /Source/cmIfCommand.h
parent3be5896e013492cbe1cf65c1c61822b68d9d59c4 (diff)
downloadCMake-edac95b955afdea2d129b32b029bf845dc29cb71.zip
CMake-edac95b955afdea2d129b32b029bf845dc29cb71.tar.gz
CMake-edac95b955afdea2d129b32b029bf845dc29cb71.tar.bz2
cmIfCommand: Reject duplicate else() and misplaced elseif()
Closes: #14335
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index 56eef30..f81db67 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -21,6 +21,7 @@ public:
cmIfFunctionBlocker()
{
this->HasRun = false;
+ this->ElseSeen = false;
this->ScopeDepth = 0;
}
~cmIfFunctionBlocker() CM_OVERRIDE {}
@@ -32,6 +33,7 @@ public:
std::vector<cmListFileFunction> Functions;
bool IsBlocking;
bool HasRun;
+ bool ElseSeen;
unsigned int ScopeDepth;
};