[clang-tools-extra] 5b8ddd2 - Fix test following Clang change ef227b3.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 30 17:12:12 PDT 2021
Author: Richard Smith
Date: 2021-06-30T17:11:55-07:00
New Revision: 5b8ddd2ccceb8de04bd020f286bc3ca38638ecb1
URL: https://github.com/llvm/llvm-project/commit/5b8ddd2ccceb8de04bd020f286bc3ca38638ecb1
DIFF: https://github.com/llvm/llvm-project/commit/5b8ddd2ccceb8de04bd020f286bc3ca38638ecb1.diff
LOG: Fix test following Clang change ef227b3.
Added:
Modified:
clang-tools-extra/clangd/unittests/FindTargetTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/FindTargetTests.cpp b/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
index 67dcb574d500a..bccf98ee07ab4 100644
--- a/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
+++ b/clang-tools-extra/clangd/unittests/FindTargetTests.cpp
@@ -464,7 +464,7 @@ TEST_F(TargetDeclTest, Concept) {
)cpp";
EXPECT_DECLS(
"ConceptSpecializationExpr",
- {"template <typename T> concept Fooable = requires (T t) { t.foo(); };"});
+ {"template <typename T> concept Fooable = requires (T t) { t.foo(); }"});
// trailing requires clause
Code = R"cpp(
@@ -475,7 +475,7 @@ TEST_F(TargetDeclTest, Concept) {
void foo() requires [[Fooable]]<T>;
)cpp";
EXPECT_DECLS("ConceptSpecializationExpr",
- {"template <typename T> concept Fooable = true;"});
+ {"template <typename T> concept Fooable = true"});
// constrained-parameter
Code = R"cpp(
@@ -486,7 +486,7 @@ TEST_F(TargetDeclTest, Concept) {
void bar(T t);
)cpp";
EXPECT_DECLS("ConceptSpecializationExpr",
- {"template <typename T> concept Fooable = true;"});
+ {"template <typename T> concept Fooable = true"});
// partial-concept-id
Code = R"cpp(
@@ -497,7 +497,7 @@ TEST_F(TargetDeclTest, Concept) {
void bar(T t);
)cpp";
EXPECT_DECLS("ConceptSpecializationExpr",
- {"template <typename T, typename U> concept Fooable = true;"});
+ {"template <typename T, typename U> concept Fooable = true"});
}
TEST_F(TargetDeclTest, FunctionTemplate) {
More information about the cfe-commits
mailing list