Searched refs:AstUnit (Results 1 – 2 of 2) sorted by relevance
42 std::unique_ptr<ASTUnit> AstUnit; member54 auto AstUnit = buildASTFromCode(wrapSnippet(StatementCode)); in matchStmt() local55 if (AstUnit == nullptr) { in matchStmt()59 ASTContext &Context = AstUnit->getASTContext(); in matchStmt()66 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)}; in matchStmt()
48 std::unique_ptr<ASTUnit> AstUnit; member60 auto AstUnit = tooling::buildASTFromCodeWithArgs(wrapSnippet(StatementCode), in matchStmt() local62 if (AstUnit == nullptr) { in matchStmt()66 ASTContext &Context = AstUnit->getASTContext(); in matchStmt()73 return TestMatch{std::move(AstUnit), MatchResult(Matches[0], &Context)}; in matchStmt()