[clang] [clang-format] Fix '!Scopes.empty()' assertion in parseBrace (PR #199098)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 7 03:20:33 PDT 2026


================
@@ -1297,6 +1297,8 @@ class AnnotatingParser {
         next();
         return true;
       }
+      if (CurrentToken->is(tok::r_brace))
+        return false;
----------------
mygitljf wrote:

got it

https://github.com/llvm/llvm-project/pull/199098


More information about the cfe-commits mailing list