This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
024c4eac05
CMake
/
Tests
/
RunCMake
/
Syntax
/
MacroUnmatchedForeach-resul...
2 lines
2 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix assertion failure on unmatched foreach in function (#15572) The lexical scope counting added by commit v3.2.0-rc1~332^2~1 (Track nested loop levels in CMake language with a stack of counters, 2014-11-18) forgot to account for scopes popped by error messages about unclosed scopes. Teach the error handler to pop the lexical scope it reports as unclosed. Re-order the lexical scope RAII object to be inside the variable scope RAII object scope so that the lexical scope is fully closed before we check assertions about variable scopes. Extend the RunCMake.Syntax test with a case covering this.
2015-05-18 17:31:42 +03:00
1