[clang-tools-extra] 35f0890 - [clang-tidy] Remove extra ";" in ModernizeModuleTest.cpp
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 03:50:43 PDT 2022
Author: Mikael Holmen
Date: 2022-06-02T12:50:00+02:00
New Revision: 35f0890c4edce1975b17d0901607f2fba9216462
URL: https://github.com/llvm/llvm-project/commit/35f0890c4edce1975b17d0901607f2fba9216462
DIFF: https://github.com/llvm/llvm-project/commit/35f0890c4edce1975b17d0901607f2fba9216462.diff
LOG: [clang-tidy] Remove extra ";" in ModernizeModuleTest.cpp
Without this fix we get
../../clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp:270:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
};
^
1 error generated.
when compiling with -Werror.
Added:
Modified:
clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
index 2461dacd5684a..4a8c1c3e5f312 100644
--- a/clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
@@ -267,7 +267,7 @@ static const SizeParam SizeParams[] = {
TEST_P(SizeTest, TokenSize) {
EXPECT_EQ(sizeText(GetParam().Text), GetParam().Size);
-};
+}
INSTANTIATE_TEST_SUITE_P(IntegralLiteralExpressionMatcherTests, SizeTest,
::testing::ValuesIn(SizeParams));
More information about the cfe-commits
mailing list