Lines Matching defs:AST
15 #include "clang/AST/RecursiveASTVisitor.h"
129 auto AST = ParsedAST::build(testPath(Filename), Inputs, std::move(CI),
131 if (!AST) {
150 // We always build AST with a fresh preamble in TestTU.
151 for (const auto &D : AST->getDiagnostics())
160 return std::move(*AST);
164 auto AST = build();
166 /*Version=*/"null", AST.getASTContext(), AST.getPreprocessor(),
167 AST.getPragmaIncludes()));
171 auto AST = build();
172 return std::get<1>(indexMainDecls(AST));
176 auto AST = build();
179 AST.getASTContext(), AST.getPreprocessor(),
180 AST.getPragmaIncludes());
181 Idx->updateMain(testPath(Filename), AST);
212 TraverseHeadersToo(ParsedAST &AST)
213 : Ctx(AST.getASTContext()), ScopeToRestore(Ctx.getTraversalScope()) {
219 const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) {
220 auto &Ctx = AST.getASTContext();
239 const NamedDecl &findDecl(ParsedAST &AST,
241 TraverseHeadersToo Too(AST);
252 Visitor.TraverseDecl(AST.getASTContext().getTranslationUnitDecl());
260 const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name) {
261 return findDecl(AST, [Name](const NamedDecl &ND) {