Lines Matching defs:AST
11 #include "clang/AST/Decl.h"
99 auto AST = build();
110 auto AST = build();
121 auto AST = build();
143 auto AST = build();
183 auto AST = build();
192 AST.sourceManager().getComposedLoc(
193 AST.sourceManager().getMainFileID(), MainFile.point("H")));
194 EXPECT_EQ(H.Resolved, *AST.fileManager().getOptionalFileRef("header.h"));
200 AST.sourceManager().getComposedLoc(
201 AST.sourceManager().getMainFileID(), MainFile.point("M")));
233 auto AST = build();
234 const auto &SM = AST.sourceManager();
237 SM.translateFile(*AST.fileManager().getOptionalFileRef("header.h")),
288 auto AST = build();
291 SourceManager &SM = AST.sourceManager();
304 // We don't build an AST, we just run a preprocessor action!
392 auto IsKeep = [&](llvm::StringRef Name, TestAST &AST) {
393 return PI.shouldKeep(*AST.fileManager().getOptionalFileRef(Name));
403 auto AST = build();
404 EXPECT_TRUE(IsKeep("foo/main.h", AST));
405 EXPECT_FALSE(IsKeep("bar/main.h", AST)) << "not first include";
413 auto AST = build();
414 EXPECT_FALSE(IsKeep("bar/other.h", AST));
415 EXPECT_FALSE(IsKeep("bar/main.h", AST)) << "not first include";
424 auto AST = build();
425 EXPECT_TRUE(IsKeep("foo/main.h", AST));
426 EXPECT_TRUE(IsKeep("bar/other.h", AST));
427 EXPECT_TRUE(IsKeep("std/vector", AST));
435 auto AST = build();
436 EXPECT_FALSE(IsKeep("std/vector", AST)) << "stdlib is not associated";