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

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 6 22:57:19 PDT 2026


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

This looks like the same fix as #199100 opened 2+ weeks ago. Seems its author had requested and been assigned to fix the bug before this patch was submitted.

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


More information about the cfe-commits mailing list