[clang] 3ca9238 - [clang-format][NFC] Fix test case format
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 23:58:59 PST 2025
Author: Owen Pan
Date: 2025-02-11T23:58:53-08:00
New Revision: 3ca9238cb0d3cdf1961c81931a624b24c787ed82
URL: https://github.com/llvm/llvm-project/commit/3ca9238cb0d3cdf1961c81931a624b24c787ed82
DIFF: https://github.com/llvm/llvm-project/commit/3ca9238cb0d3cdf1961c81931a624b24c787ed82.diff
LOG: [clang-format][NFC] Fix test case format
Added:
Modified:
clang/unittests/Format/TokenAnnotatorTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Format/TokenAnnotatorTest.cpp b/clang/unittests/Format/TokenAnnotatorTest.cpp
index 54d8ff0571ca6..5ab0867490122 100644
--- a/clang/unittests/Format/TokenAnnotatorTest.cpp
+++ b/clang/unittests/Format/TokenAnnotatorTest.cpp
@@ -1187,8 +1187,8 @@ TEST_F(TokenAnnotatorTest, UnderstandsRequiresClausesAndConcepts) {
EXPECT_TOKEN(Tokens[33], tok::identifier, TT_Unknown);
Tokens =
- annotate("template<typename T>\n"
- "requires (C1<T> && (C21<T> || C22<T> && C2e<T>) && C3<T>)\n"
+ annotate("template <typename T>\n"
+ " requires(C1<T> && (C21<T> || C22<T> && C2e<T>) && C3<T>)\n"
"struct Foo;");
ASSERT_EQ(Tokens.size(), 38u) << Tokens;
EXPECT_TOKEN(Tokens[5], tok::kw_requires, TT_RequiresClause);
More information about the cfe-commits
mailing list