HazardyKnusperkeks created this revision. HazardyKnusperkeks added reviewers: owenpan, curdeius, MyDeveloperDay. HazardyKnusperkeks added a project: clang-format. HazardyKnusperkeks requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
All "calls" have a semi, as they should, remove the one from the macro. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D120359 Files: clang/unittests/Format/TokenAnnotatorTest.cpp Index: clang/unittests/Format/TokenAnnotatorTest.cpp =================================================================== --- clang/unittests/Format/TokenAnnotatorTest.cpp +++ clang/unittests/Format/TokenAnnotatorTest.cpp @@ -42,7 +42,7 @@ do { \ EXPECT_TOKEN_KIND(FormatTok, Kind); \ EXPECT_TOKEN_TYPE(FormatTok, Type); \ - } while (false) + } while (false); TEST_F(TokenAnnotatorTest, UnderstandsUsesOfStarAndAmpInMacroDefinition) { // This is a regression test for mis-parsing the & after decltype as a binary
Index: clang/unittests/Format/TokenAnnotatorTest.cpp =================================================================== --- clang/unittests/Format/TokenAnnotatorTest.cpp +++ clang/unittests/Format/TokenAnnotatorTest.cpp @@ -42,7 +42,7 @@ do { \ EXPECT_TOKEN_KIND(FormatTok, Kind); \ EXPECT_TOKEN_TYPE(FormatTok, Type); \ - } while (false) + } while (false); TEST_F(TokenAnnotatorTest, UnderstandsUsesOfStarAndAmpInMacroDefinition) { // This is a regression test for mis-parsing the & after decltype as a binary
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits