================
@@ -29053,6 +29053,8 @@ TEST_F(FormatTest, KeywordedFunctionLikeMacros) {
Style);
}
+TEST_F(FormatTest, DoesNotCrashIncompleteCode) { verifyNoCrash("template <"); }
----------------
owenca wrote:
```suggestion
TEST_F(FormatTest, UnbalancedAngleBrackets) { verifyFormat("template <"); }
```
We can put this test case and the one from #173456 in the same `TEST_F`. Also,
it's better to use `verifyFormat` for incomplete code as some editors support
formatting as you type.
https://github.com/llvm/llvm-project/pull/173433
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits