diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-03-20 20:49:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-22 12:42:35 (GMT) |
commit | edac95b955afdea2d129b32b029bf845dc29cb71 (patch) | |
tree | cf96ba88c3e04fe23daa131817e92dd51515561a /Source/cmIfCommand.h | |
parent | 3be5896e013492cbe1cf65c1c61822b68d9d59c4 (diff) | |
download | CMake-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.h | 2 |
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; }; |