Lines Matching defs:AST
14 #include "clang/AST/ASTContext.h"
15 #include "clang/AST/DeclBase.h"
75 offsetToProviders(TestAST &AST,
77 const auto &SM = AST.sourceManager();
79 for (Decl *D : AST.context().getTranslationUnitDecl()->decls()) {
85 walkUsed(TopLevelDecls, MacroRefs, &PI, AST.preprocessor(),
119 TestAST AST(Inputs);
120 auto &SM = AST.sourceManager();
121 auto HeaderFile = Header(*AST.fileManager().getOptionalFileRef("header.h"));
122 auto PrivateFile = Header(*AST.fileManager().getOptionalFileRef("private.h"));
128 offsetToProviders(AST),
159 TestAST AST(Inputs);
160 auto &SM = AST.sourceManager();
161 auto HeaderFile1 = Header(*AST.fileManager().getOptionalFileRef("header1.h"));
162 auto HeaderFile2 = Header(*AST.fileManager().getOptionalFileRef("header2.h"));
165 offsetToProviders(AST),
179 TestAST AST(Inputs);
180 auto &SM = AST.sourceManager();
181 auto &PP = AST.preprocessor();
193 AST,
262 TestAST AST(Inputs);
263 auto Decls = AST.context().getTranslationUnitDecl()->decls();
266 PP.MacroReferences, PP.Includes, &PI, AST.preprocessor());
268 AST.context().getSourceManager().getFileManager().getFileRef("c.h"));
282 TestAST AST(Inputs);
284 auto Results = analyze({}, {}, PP.Includes, &PI, AST.preprocessor());
292 TestAST AST(Inputs);
294 auto Results = analyze({}, {}, PP.Includes, &PI, AST.preprocessor());
317 TestAST AST(Inputs);
318 auto Results = analyze({}, {}, PP.Includes, &PI, AST.preprocessor());
339 TestAST AST(Inputs);
341 for (auto *D : AST.context().getTranslationUnitDecl()->decls())
343 auto Results = analyze(DeclsInTU, {}, PP.Includes, &PI, AST.preprocessor());
370 TestAST AST(Inputs);
372 for (auto *D : AST.context().getTranslationUnitDecl()->decls())
374 auto Results = analyze(DeclsInTU, {}, PP.Includes, &PI, AST.preprocessor());
384 Results = analyze(DeclsInTU, {}, PP.Includes, &PI, AST.preprocessor(),
392 Results = analyze(DeclsInTU, {}, PP.Includes, &PI, AST.preprocessor(),
528 TestAST AST(Inputs);
530 for (Decl *D : AST.context().getTranslationUnitDecl()->decls())
532 auto &SM = AST.sourceManager();
536 /*PragmaIncludes=*/nullptr, AST.preprocessor(),
592 TestAST AST(Inputs);
593 auto &SM = AST.sourceManager();
599 offsetToProviders(AST),
626 TestAST AST(Inputs);
627 auto &SM = AST.sourceManager();
629 EXPECT_THAT(offsetToProviders(AST),