[clang] [clang-format] Fix a crash in formatting unbalanced angle brackets (PR #173456)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 25 00:04:51 PST 2025
================
@@ -29053,6 +29053,11 @@ TEST_F(FormatTest, KeywordedFunctionLikeMacros) {
Style);
}
+TEST_F(FormatTest, UnbalancedAngleBrackets) {
+ verifyNoCrash("typename foo<bar>::value, const String &>::type f();",
+ getLLVMStyleWithColumns(50));
----------------
owenca wrote:
Yep! Otherwise, the assertion in `ContinuationIndenter::mustBreak` wouldn't fire.
https://github.com/llvm/llvm-project/pull/173456
More information about the cfe-commits
mailing list