krasimir added a comment. Looks good! I just have two nits.
================ Comment at: lib/Format/NamespaceEndCommentsFixer.cpp:139 + } if (NamespaceTok->isNot(tok::kw_namespace)) continue; ---------------- I'd instead just add a guard check at old line 136: ``` if (!NamespaceTok || NamespaceTok->isNot(tok::kw_namespace)) continue; ``` ================ Comment at: unittests/Format/NamespaceEndCommentsFixerTest.cpp:586 + +TEST_F(NamespaceEndCommentsFixerTest, PR32438) { + EXPECT_EQ("template <int> struct a {};\n" ---------------- I'd make the test name a bit descriptive; something like: `HandlesInlineAtEndOfLine_PR32438` https://reviews.llvm.org/D31441 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits