[clang] 47e7056 - [clang-format] Remove an extraneous test in TokenAnnotatorTest.cpp
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 21:18:49 PDT 2022
Author: owenca
Date: 2022-08-22T21:18:37-07:00
New Revision: 47e70569fc356c3dc1fbc444a55975dac586ce73
URL: https://github.com/llvm/llvm-project/commit/47e70569fc356c3dc1fbc444a55975dac586ce73
DIFF: https://github.com/llvm/llvm-project/commit/47e70569fc356c3dc1fbc444a55975dac586ce73.diff
LOG: [clang-format] Remove an extraneous test in TokenAnnotatorTest.cpp
This removes an obsolete test case introduced by mistake from
commit 2e36120726ee46cbfd3eee1e9244bdd756dee92d.
Added:
Modified:
clang/unittests/Format/TokenAnnotatorTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Format/TokenAnnotatorTest.cpp b/clang/unittests/Format/TokenAnnotatorTest.cpp
index 13b95598a602..4e9d5c77f99e 100644
--- a/clang/unittests/Format/TokenAnnotatorTest.cpp
+++ b/clang/unittests/Format/TokenAnnotatorTest.cpp
@@ -286,12 +286,6 @@ TEST_F(TokenAnnotatorTest, UnderstandsWhitespaceSensitiveMacros) {
EXPECT_TOKEN(Tokens[0], tok::identifier, TT_UntouchableMacroFunc);
}
-TEST_F(TokenAnnotatorTest, UnderstandsLBracesInMacroDefinition) {
- auto Tokens = annotate("#define BEGIN NS {");
- EXPECT_EQ(Tokens.size(), 6u) << Tokens;
- EXPECT_TOKEN(Tokens[4], tok::l_brace, TT_Unknown);
-}
-
TEST_F(TokenAnnotatorTest, UnderstandsDelete) {
auto Tokens = annotate("delete (void *)p;");
EXPECT_EQ(Tokens.size(), 8u) << Tokens;
More information about the cfe-commits
mailing list