Home
last modified time | relevance | path

Searched refs:AstUnit (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeBuildersTest.cpp58 std::unique_ptr<ASTUnit> AstUnit; member
70 auto AstUnit = buildASTFromCodeWithArgs(wrapSnippet(StatementCode), in matchStmt() local
72 if (AstUnit == nullptr) { in matchStmt()
76 ASTContext &Context = AstUnit->getASTContext(); in matchStmt()
83 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)}; in matchStmt()
H A DStencilTest.cpp60 std::unique_ptr<ASTUnit> AstUnit; member
74 auto AstUnit = tooling::buildASTFromCodeWithArgs( in matchStmt() local
76 if (AstUnit == nullptr) { in matchStmt()
80 ASTContext &Context = AstUnit->getASTContext(); in matchStmt()
87 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)}; in matchStmt()