[clang] 2ef12b5 - [clang] Fix the broken DeductionGuide ToolingTests after c7bfc41860a6abe5c92dc5afb47348b0c9e69963
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 11:31:41 PDT 2024
Author: Haojian Wu
Date: 2024-07-22T20:31:25+02:00
New Revision: 2ef12b55b2a655262b03204581076522261d5eb3
URL: https://github.com/llvm/llvm-project/commit/2ef12b55b2a655262b03204581076522261d5eb3
DIFF: https://github.com/llvm/llvm-project/commit/2ef12b55b2a655262b03204581076522261d5eb3.diff
LOG: [clang] Fix the broken DeductionGuide ToolingTests after c7bfc41860a6abe5c92dc5afb47348b0c9e69963
Added:
Modified:
clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
index cd4bf0eb7bd5a..df878bfc113e5 100644
--- a/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
+++ b/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
@@ -37,7 +37,7 @@ TEST(RecursiveASTVisitor, DeductionGuideNonImplicitMode) {
// Verify that the synthezied deduction guide for alias is not visited in
// RAV's implicit mode.
Visitor.ExpectMatch("Foo(T) -> Foo<int>", 11, 1);
- Visitor.DisallowMatch("Bar(type-parameter-0-0) -> Foo<int>", 14, 1);
+ Visitor.DisallowMatch("Bar(T) -> Foo<int>", 14, 1);
EXPECT_TRUE(Visitor.runOver(
R"cpp(
template <typename T>
@@ -61,7 +61,7 @@ Bar s(1);
TEST(RecursiveASTVisitor, DeductionGuideImplicitMode) {
DeductionGuideVisitor Visitor(/*ShouldVisitImplicitCode*/ true);
Visitor.ExpectMatch("Foo(T) -> Foo<int>", 11, 1);
- Visitor.ExpectMatch("Bar(type-parameter-0-0) -> Foo<int>", 14, 1);
+ Visitor.ExpectMatch("Bar(T) -> Foo<int>", 14, 1);
EXPECT_TRUE(Visitor.runOver(
R"cpp(
template <typename T>
More information about the cfe-commits
mailing list