[clang] dcbbdbe - [NFC] remove duplciated unittests for modules
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 9 02:21:01 PDT 2023
Author: Chuanqi Xu
Date: 2023-06-09T17:19:32+08:00
New Revision: dcbbdbe3e50214b550383510ba05d059dc38496a
URL: https://github.com/llvm/llvm-project/commit/dcbbdbe3e50214b550383510ba05d059dc38496a
DIFF: https://github.com/llvm/llvm-project/commit/dcbbdbe3e50214b550383510ba05d059dc38496a.diff
LOG: [NFC] remove duplciated unittests for modules
There was an overlook to duplicate the unittests for modules. This patch
removes one of this duplication.
Added:
Modified:
clang/unittests/AST/DeclTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/AST/DeclTest.cpp b/clang/unittests/AST/DeclTest.cpp
index 0cc7f93153f43..463f35c1cd08b 100644
--- a/clang/unittests/AST/DeclTest.cpp
+++ b/clang/unittests/AST/DeclTest.cpp
@@ -240,23 +240,6 @@ TEST(Decl, ModuleAndInternalLinkage) {
EXPECT_EQ(b->getFormalLinkage(), ModuleLinkage);
EXPECT_EQ(g->getFormalLinkage(), ModuleLinkage);
-
- AST = tooling::buildASTFromCodeWithArgs(
- Code.code(), /*Args=*/{"-std=c++20"});
- ASTContext &CtxTS = AST->getASTContext();
- a = selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), CtxTS));
- f = selectFirst<FunctionDecl>(
- "f", match(functionDecl(hasName("f")).bind("f"), CtxTS));
-
- EXPECT_EQ(a->getFormalLinkage(), InternalLinkage);
- EXPECT_EQ(f->getFormalLinkage(), InternalLinkage);
-
- b = selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), CtxTS));
- g = selectFirst<FunctionDecl>(
- "g", match(functionDecl(hasName("g")).bind("g"), CtxTS));
-
- EXPECT_EQ(b->getFormalLinkage(), ModuleLinkage);
- EXPECT_EQ(g->getFormalLinkage(), ModuleLinkage);
}
TEST(Decl, GetNonTransparentDeclContext) {
More information about the cfe-commits
mailing list