mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 07:09:22 +00:00
3a65606591
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.
9 lines
273 B
Plaintext
9 lines
273 B
Plaintext
^CMake Error at FunctionUnmatchedForeach.cmake:[0-9]+ \(f\):
|
|
A logical block opening on the line
|
|
|
|
.*/Tests/RunCMake/Syntax/FunctionUnmatchedForeach.cmake:[0-9]+ \(foreach\)
|
|
|
|
is not closed.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)$
|