[clang] [clang-format] Fix '!Scopes.empty()' assertion in parseBrace (PR #199098)
via cfe-commits
cfe-commits at lists.llvm.org
Sat May 23 06:48:24 PDT 2026
mygitljf wrote:
I added these two because each hits a different path: { operator } a } b triggers the bug through consumeToken's kw_operator inner loop, and enum E { { ? } a } triggers the second assertion (Scopes.back() == getScopeType(OpeningBrace)) since the outer enum's ST_Enum frame doesn't match the inner brace's ST_Other — so I think they together prove both if-returns in parseBrace are doing real work.
https://github.com/llvm/llvm-project/pull/199098
More information about the cfe-commits
mailing list