[clang] [clang-format] Don't crash on incomplete template declaration (PR #173433)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 24 05:06:51 PST 2025
================
@@ -29053,6 +29053,8 @@ TEST_F(FormatTest, KeywordedFunctionLikeMacros) {
Style);
}
+TEST_F(FormatTest, DoesNotCrashIncompleteCode) { verifyNoCrash("template <"); }
----------------
HazardyKnusperkeks wrote:
I know, that's why I'm here fixing it, my IDE crashed. ;) I made the change, but honestly I don't care how it is formatted while it's incomplete, as soon as the complete code is there it should be correct.
https://github.com/llvm/llvm-project/pull/173433
More information about the cfe-commits
mailing list