Home
last modified time | relevance | path

Searched refs:ToAST (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang/unittests/AST/
DASTImporterFixtures.cpp24 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName, in createVirtualFileIfNeeded() argument
26 assert(ToAST); in createVirtualFileIfNeeded()
27 ASTContext &ToCtx = ToAST->getASTContext(); in createVirtualFileIfNeeded()
35 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName, in createVirtualFileIfNeeded() argument
37 return createVirtualFileIfNeeded(ToAST, FileName, in createVirtualFileIfNeeded()
67 ASTUnit *ToAST) { in lazyInitImporter() argument
68 assert(ToAST); in lazyInitImporter()
70 Importer.reset(Creator(ToAST->getASTContext(), ToAST->getFileManager(), in lazyInitImporter()
75 assert(&ToAST->getASTContext() == &Importer->getToContext()); in lazyInitImporter()
76 createVirtualFileIfNeeded(ToAST, FileName, Code); in lazyInitImporter()
[all …]
DASTImporterFixtures.h44 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName,
47 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName,
127 ASTUnit *ToAST);
129 ASTUnit *ToAST, Decl *FromDecl);
132 ASTUnit *ToAST, Decl *FromDecl);
134 ASTUnit *ToAST, QualType FromType);
157 std::unique_ptr<ASTUnit> ToAST;
253 ToAST = tooling::buildASTFromCodeWithArgs( in testImport() local
257 &ToCtx = ToAST->getASTContext(); in testImport()
259 ASTImporter Importer(ToCtx, ToAST->getFileManager(), FromCtx, in testImport()
[all …]
DASTImporterTest.cpp1567 SourceManager &ToSM = ToAST->getASTContext().getSourceManager(); in TEST_P()
1588 SourceManager &ToSM = ToAST->getASTContext().getSourceManager(); in TEST_P()
1681 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
1714 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
1933 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
1971 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2003 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2063 auto *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2154 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2223 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
[all …]
DASTImporterGenericRedeclTest.cpp403 Decl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TypedTest_ImportPrototypeThenProtoAndDefinition()
/external/clang/unittests/AST/
DASTImporterTest.cpp63 ToAST = tooling::buildASTFromCodeWithArgs(ToCode, ToArgs, OutputFileName); in testImport() local
66 &ToCtx = ToAST->getASTContext(); in testImport()
77 ASTImporter Importer(ToCtx, ToAST->getFileManager(), in testImport()