[clang] [clang-format] Fix a crash on unbalanced `?` inside nested braces (PR #199098)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Fri May 22 12:01:36 PDT 2026
================
@@ -14383,6 +14383,8 @@ TEST_F(FormatTest, IncorrectCodeUnbalancedBraces) {
"};");
verifyNoCrash("decltype( {\n"
" {");
+ // Issue #199017
+ verifyNoCrash("{{ < ? } a} b");
----------------
HazardyKnusperkeks wrote:
This is not unbalanced, there are 2 braces each.
We have a `DoNotCrashOnInvalidInput` test case.
https://github.com/llvm/llvm-project/pull/199098
More information about the cfe-commits
mailing list