[clang] 1d03548 - [clang-format][NFC] Remove redundant semi

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 26 12:23:18 PST 2022


Author: Björn Schäpers
Date: 2022-02-26T21:22:36+01:00
New Revision: 1d03548f63add672b4adf03360e396eba852bce5

URL: https://github.com/llvm/llvm-project/commit/1d03548f63add672b4adf03360e396eba852bce5
DIFF: https://github.com/llvm/llvm-project/commit/1d03548f63add672b4adf03360e396eba852bce5.diff

LOG: [clang-format][NFC] Remove redundant semi

All "calls" have a semi, as they should, remove the one from the macro.

Differential Revision: https://reviews.llvm.org/D120359

Added: 
    

Modified: 
    clang/unittests/Format/TokenAnnotatorTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Format/TokenAnnotatorTest.cpp b/clang/unittests/Format/TokenAnnotatorTest.cpp
index e7bc26b5a9b54..60137b8a23c68 100644
--- a/clang/unittests/Format/TokenAnnotatorTest.cpp
+++ b/clang/unittests/Format/TokenAnnotatorTest.cpp
@@ -42,7 +42,7 @@ class TokenAnnotatorTest : public ::testing::Test {
   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


        


More information about the cfe-commits mailing list