Home
last modified time | relevance | path

Searched refs:ASTUnit (Results 1 – 25 of 59) sorted by relevance

123

/llvm-project-15.0.7/clang/unittests/AST/
H A DRandstructTest.cpp89 static std::unique_ptr<ASTUnit>
156 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
176 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
196 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
216 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
239 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
260 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
281 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
306 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
332 std::unique_ptr<ASTUnit> AST = makeAST(R"c( in TEST()
[all …]
H A DASTImporterFixtures.h35 class ASTUnit; variable
113 std::unique_ptr<ASTUnit> Unit;
127 ASTUnit *ToAST);
129 ASTUnit *ToAST, Decl *FromDecl);
132 ASTUnit *ToAST, Decl *FromDecl);
157 std::unique_ptr<ASTUnit> ToAST;
212 llvm::Expected<NodeType> importNode(ASTUnit *From, ASTUnit *To, in importNode()
339 using SingleASTUnit = std::unique_ptr<ASTUnit>;
377 using ImporterKey = std::pair<const ASTUnit *, const ASTUnit *>; in testImportSequence()
393 ASTUnit *From = AllASTs[FromFile].get(); in testImportSequence()
[all …]
H A DASTImporterFixtures.cpp24 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName, in createVirtualFileIfNeeded()
35 void createVirtualFileIfNeeded(ASTUnit *ToAST, StringRef FileName, in createVirtualFileIfNeeded()
67 ASTUnit *ToAST) { in lazyInitImporter()
80 const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST, in import()
92 const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST, in importOrError()
99 const std::shared_ptr<ASTImporterSharedState> &SharedState, ASTUnit *ToAST, in import()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DASTUnitTest.cpp36 std::unique_ptr<ASTUnit> createASTUnit(bool isVolatile) { in createASTUnit()
57 return ASTUnit::LoadFromCompilerInvocation( in createASTUnit()
78 std::unique_ptr<ASTUnit> AST = createASTUnit(false); in TEST_F()
93 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in TEST_F()
95 ASTUnit::LoadEverything, Diags, FileSystemOptions(), in TEST_F()
105 std::unique_ptr<ASTUnit> AST = createASTUnit(true); in TEST_F()
146 auto AU = ASTUnit::LoadFromCompilerInvocation( in TEST_F()
167 std::unique_ptr<clang::ASTUnit> ErrUnit; in TEST_F()
169 ASTUnit *AST = ASTUnit::LoadFromCommandLine( in TEST_F()
H A DPCHPreambleTest.cpp83 std::unique_ptr<ASTUnit> ParseAST(const std::string &EntryFile) { in ParseAST()
102 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in ParseAST()
108 bool ReparseAST(const std::unique_ptr<ASTUnit> &AST) { in ReparseAST()
208 std::unique_ptr<ASTUnit> AST(ParseAST(MainName)); in TEST_F()
234 std::unique_ptr<ASTUnit> AST(ParseAST(Main)); in TEST_F()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DASTUnit.cpp242 ASTUnit::ASTUnit(bool _MainFileIsAST) in ASTUnit() function in ASTUnit
251 ASTUnit::~ASTUnit() { in ~ASTUnit()
757 std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( in LoadFromASTFile()
764 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile()
937 ASTUnit &Unit;
996 ASTUnit &Unit;
1484 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in create()
1500 ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( in LoadFromCompilerInvocationAction()
1671 std::unique_ptr<ASTUnit> ASTUnit::LoadFromCompilerInvocation( in LoadFromCompilerInvocation()
1680 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in LoadFromCompilerInvocation()
[all …]
H A DASTMerge.cpp49 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile( in ExecuteAction()
50 ASTFiles[I], CI.getPCHContainerReader(), ASTUnit::LoadEverything, Diags, in ExecuteAction()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DASTUnit.h89 class ASTUnit {
368 explicit ASTUnit(bool MainFileIsAST);
408 ASTUnit &Self;
420 ASTUnit(const ASTUnit &) = delete;
421 ASTUnit &operator=(const ASTUnit &) = delete;
422 ~ASTUnit();
665 static std::unique_ptr<ASTUnit>
691 static std::unique_ptr<ASTUnit>
763 std::unique_ptr<ASTUnit> *ErrAST = nullptr);
820 static ASTUnit *LoadFromCommandLine(
[all …]
H A DFrontendAction.h38 std::unique_ptr<ASTUnit> CurrentASTUnit;
156 ASTUnit &getCurrentASTUnit() const { in getCurrentASTUnit()
163 std::unique_ptr<ASTUnit> takeCurrentASTUnit() { in takeCurrentASTUnit()
168 std::unique_ptr<ASTUnit> AST = nullptr);
/llvm-project-15.0.7/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h31 class ASTUnit; variable
168 llvm::Expected<ASTUnit *> loadExternalAST(StringRef LookupName,
179 ASTUnit *Unit);
181 ASTUnit *Unit);
210 ASTImporter &getOrCreateASTImporter(ASTUnit *Unit);
220 llvm::Expected<const T *> importDefinitionImpl(const T *D, ASTUnit *Unit);
230 using LoadResultTy = llvm::Expected<std::unique_ptr<ASTUnit>>;
305 llvm::Expected<ASTUnit *> getASTUnitForFunction(StringRef FunctionName,
325 llvm::Expected<ASTUnit *> getASTUnitForFile(StringRef FileName,
329 using OwningMapTy = BaseMapTy<std::unique_ptr<clang::ASTUnit>>;
[all …]
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXTranslationUnit.h21 class ASTUnit; variable
30 clang::ASTUnit *TheASTUnit;
47 std::unique_ptr<ASTUnit> AU);
49 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { in getASTUnit()
57 bool isASTReadError(ASTUnit *AU);
H A DCIndexHigh.cpp245 ASTUnit &Unit;
250 FindFileMacroRefVisitData(ASTUnit &Unit, const FileEntry *File, in FindFileMacroRefVisitData()
313 ASTUnit *Unit = cxtu::getASTUnit(TU); in findMacroRefsInFile()
339 ASTUnit &Unit;
343 FindFileIncludesVisitor(ASTUnit &Unit, const FileEntry *File, in FindFileIncludesVisitor()
385 ASTUnit *Unit = cxtu::getASTUnit(TU); in findIncludesInFile()
437 ASTUnit *CXXUnit = cxcursor::getCursorASTUnit(cursor); in clang_findReferencesInFile()
441 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_findReferencesInFile()
500 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_findIncludesInFile()
504 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_findIncludesInFile()
H A DCIndexer.h27 class ASTUnit; variable
126 void printDiagsToStderr(ASTUnit *Unit);
H A DCursorVisitor.h20 class ASTUnit; variable
80 ASTUnit *AU;
184 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DCFGBuildResult.h28 std::unique_ptr<ASTUnit> AST = nullptr)
33 ASTUnit *getAST() const { return AST.get(); } in getAST()
39 std::unique_ptr<ASTUnit> AST;
45 CFGCallback(std::unique_ptr<ASTUnit> AST) : AST(std::move(AST)) {} in CFGCallback()
47 std::unique_ptr<ASTUnit> AST;
68 std::unique_ptr<ASTUnit> AST = tooling::buildASTFromCodeWithArgs(Code, Args);
H A DCloneDetectionTest.cpp55 auto ASTUnit = in TEST() local
60 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-query/
H A DQuerySession.h19 class ASTUnit; variable
26 QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs) in QuerySession()
31 llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;
/llvm-project-15.0.7/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp290 llvm::Expected<ASTUnit *> ASTUnitOrError = in getCrossTUDefinitionImpl()
294 ASTUnit *Unit = *ASTUnitOrError; in getCrossTUDefinitionImpl()
401 llvm::Expected<ASTUnit *>
423 ASTUnit *Unit = LoadedUnit.get(); in getASTUnitForFile()
441 llvm::Expected<ASTUnit *>
463 if (llvm::Expected<ASTUnit *> FoundForFile = in getASTUnitForFunction()
519 llvm::Expected<ASTUnit *> Unit = ASTStorage.getASTUnitForFunction( in loadExternalAST()
568 return ASTUnit::LoadFromASTFile( in loadFromDump()
612 return std::unique_ptr<ASTUnit>(ASTUnit::LoadFromCommandLine( in loadFromSource()
765 ASTUnit *Unit) { in importDefinition()
[all …]
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-query/
H A DQueryEngineTest.cpp28 ArrayRef<std::unique_ptr<ASTUnit>> mkASTUnit2(std::unique_ptr<ASTUnit> a, in mkASTUnit2()
29 std::unique_ptr<ASTUnit> b) { in mkASTUnit2()
32 return ArrayRef<std::unique_ptr<ASTUnit>>(ASTs); in mkASTUnit2()
43 std::unique_ptr<ASTUnit> ASTs[2];
/llvm-project-15.0.7/clang/include/clang/Index/
H A DIndexingAction.h24 class ASTUnit; variable
54 void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer,
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dcore_main.cpp241 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in printSourceSymbols()
275 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in printSourceSymbolsFromModule()
276 std::string(modulePath), *pchRdr, ASTUnit::LoadASTOnly, Diags, in printSourceSymbolsFromModule()
/llvm-project-15.0.7/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp153 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile( in HandleAST()
155 ASTUnit::LoadASTOnly, DiagEngine, CI->getFileSystemOpts()); in HandleAST()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DTooling.cpp598 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
601 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
607 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
623 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
639 std::unique_ptr<ASTUnit>
646 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs( in buildASTFromCodeWithArgs()
651 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp38 std::unique_ptr<clang::ASTUnit> ASTUnit; member
44 auto ASTUnit = tooling::buildASTFromCode(Code); in matchCode() local
45 assert(ASTUnit != nullptr && "AST construction failed"); in matchCode()
47 ASTContext &Context = ASTUnit->getASTContext(); in matchCode()
56 return TestMatch{std::move(ASTUnit), MatchResult(Matches[0], &Context)}; in matchCode()
/llvm-project-15.0.7/clang/include/clang/Tooling/
H A DTooling.h211 std::unique_ptr<ASTUnit>
229 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
362 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);

123