[clang] [clang][test] Add missing test file to cmake (PR #99907)
Keith Smiley via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 10:33:30 PDT 2024
https://github.com/keith created https://github.com/llvm/llvm-project/pull/99907
Seems like this test was never running with cmake, but is running with
bazel and broke at head.
>From 82a1e48e7643b552f898f6866f768a78ea3ba7da Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Mon, 22 Jul 2024 17:29:46 +0000
Subject: [PATCH] [clang][test] Add missing test file to cmake
Seems like this test was never running with cmake, but is running with
bazel and broke at head.
---
clang/unittests/Tooling/CMakeLists.txt | 1 +
.../Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt
index 0eb612f8d9498..401978c31863c 100644
--- a/clang/unittests/Tooling/CMakeLists.txt
+++ b/clang/unittests/Tooling/CMakeLists.txt
@@ -40,6 +40,7 @@ add_clang_unittest(ToolingTests
RecursiveASTVisitorTests/CXXMethodDecl.cpp
RecursiveASTVisitorTests/CXXOperatorCallExprTraverser.cpp
RecursiveASTVisitorTests/DeclRefExpr.cpp
+ RecursiveASTVisitorTests/DeductionGuide.cpp
RecursiveASTVisitorTests/ImplicitCtor.cpp
RecursiveASTVisitorTests/ImplicitCtorInitializer.cpp
RecursiveASTVisitorTests/InitListExprPostOrder.cpp
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
index cd4bf0eb7bd5a..27cb39ea8fdf7 100644
--- a/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
+++ b/clang/unittests/Tooling/RecursiveASTVisitorTests/DeductionGuide.cpp
@@ -58,7 +58,7 @@ Bar s(1);
DeductionGuideVisitor::Lang_CXX2a));
}
-TEST(RecursiveASTVisitor, DeductionGuideImplicitMode) {
+TEST(RecursiveASTVisitor, DISABLED_DeductionGuideImplicitMode) {
DeductionGuideVisitor Visitor(/*ShouldVisitImplicitCode*/ true);
Visitor.ExpectMatch("Foo(T) -> Foo<int>", 11, 1);
Visitor.ExpectMatch("Bar(type-parameter-0-0) -> Foo<int>", 14, 1);
More information about the cfe-commits
mailing list