Home
last modified time | relevance | path

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

12

/external/clang/lib/Frontend/
DASTUnit.cpp109 typedef llvm::DenseMap<const ASTUnit *,
131 static OnDiskData &getOnDiskData(const ASTUnit *AU) { in getOnDiskData()
142 static void erasePreambleFile(const ASTUnit *AU) { in erasePreambleFile()
146 static void removeOnDiskEntry(const ASTUnit *AU) { in removeOnDiskEntry()
158 static void setPreambleFile(const ASTUnit *AU, StringRef preambleFile) { in setPreambleFile()
162 static const std::string &getPreambleFile(const ASTUnit *AU) { in getPreambleFile()
184 struct ASTUnit::ASTWriterData {
192 void ASTUnit::clearFileLevelDecls() { in clearFileLevelDecls()
196 void ASTUnit::CleanTemporaryFiles() { in CleanTemporaryFiles()
200 void ASTUnit::addTemporaryFile(StringRef TempFile) { in addTemporaryFile()
[all …]
DASTMerge.cpp48 std::unique_ptr<ASTUnit> Unit = in ExecuteAction()
49 ASTUnit::LoadFromASTFile(ASTFiles[I], CI.getPCHContainerReader(), in ExecuteAction()
DCMakeLists.txt18 ASTUnit.cpp
/external/clang/tools/libclang/
DCXTranslationUnit.h22 class ASTUnit; variable
31 clang::ASTUnit *TheASTUnit;
41 CXTranslationUnitImpl *MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU);
43 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { in getASTUnit()
51 bool isASTReadError(ASTUnit *AU);
DCIndexHigh.cpp248 ASTUnit &Unit;
253 FindFileMacroRefVisitData(ASTUnit &Unit, const FileEntry *File, in FindFileMacroRefVisitData()
316 ASTUnit *Unit = cxtu::getASTUnit(TU); in findMacroRefsInFile()
342 ASTUnit &Unit;
346 FindFileIncludesVisitor(ASTUnit &Unit, const FileEntry *File, in FindFileIncludesVisitor()
388 ASTUnit *Unit = cxtu::getASTUnit(TU); in findIncludesInFile()
440 ASTUnit *CXXUnit = cxcursor::getCursorASTUnit(cursor); in clang_findReferencesInFile()
444 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_findReferencesInFile()
503 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_findIncludesInFile()
507 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_findIncludesInFile()
DCIndexer.h31 class ASTUnit; variable
101 void printDiagsToStderr(ASTUnit *Unit);
DCursorVisitor.h21 class ASTUnit; variable
66 ASTUnit *AU;
175 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
DCIndex.cpp71 CXTranslationUnit cxtu::MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU) { in MakeCXTranslationUnit()
85 bool cxtu::isASTReadError(ASTUnit *AU) { in isASTReadError()
86 for (ASTUnit::stored_diag_iterator D = AU->stored_diag_begin(), in isASTReadError()
250 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
299 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
516 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren()
523 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(), in VisitChildren()
3144 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in clang_createTranslationUnit2()
3218 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles( in clang_parseTranslationUnit_Impl()
3219 new std::vector<ASTUnit::RemappedFile>()); in clang_parseTranslationUnit_Impl()
[all …]
DCXSourceLocation.cpp135 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocation()
136 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_getLocation()
165 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocationForOffset()
DCXType.h22 class ASTUnit; variable
DIndexing.cpp521 ASTUnit *Unit = ASTUnit::create(CInvok.get(), Diags, CaptureDiagnostics, in clang_indexSourceFile_Impl()
585 bool Success = ASTUnit::LoadFromCompilerInvocationAction( in clang_indexSourceFile_Impl()
611 static void indexPreprocessingRecord(ASTUnit &Unit, CXIndexDataConsumer &IdxCtx) { in indexPreprocessingRecord()
660 ASTUnit *Unit = cxtu::getASTUnit(TU); in clang_indexTranslationUnit_Impl()
664 ASTUnit::ConcurrencyCheck Check(*Unit); in clang_indexTranslationUnit_Impl()
DCXCursor.h25 class ASTUnit; variable
248 ASTUnit *getCursorASTUnit(CXCursor Cursor);
DCIndexInclusionStack.cpp28 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in getInclusions()
/external/clang/include/clang/Frontend/
DASTUnit.h68 class ASTUnit : public ModuleLoader {
311 ASTUnit &AST, bool CaptureDiagnostics);
421 ASTUnit(const ASTUnit &) = delete;
422 void operator=(const ASTUnit &) = delete;
424 explicit ASTUnit(bool MainFileIsAST);
478 ASTUnit &Self;
481 explicit ConcurrencyCheck(ASTUnit &Self) in ConcurrencyCheck()
492 ~ASTUnit() override;
713 static ASTUnit *create(CompilerInvocation *CI,
728 static std::unique_ptr<ASTUnit> LoadFromASTFile(
[all …]
DFrontendAction.h38 std::unique_ptr<ASTUnit> CurrentASTUnit;
144 ASTUnit &getCurrentASTUnit() const { in getCurrentASTUnit()
149 std::unique_ptr<ASTUnit> takeCurrentASTUnit() { in takeCurrentASTUnit()
154 std::unique_ptr<ASTUnit> AST = nullptr);
/external/clang/unittests/AST/
DPostOrderASTVisitor.cpp76 auto ASTUnit = tooling::buildASTFromCode( in TEST() local
83 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
101 auto ASTUnit = tooling::buildASTFromCode( in TEST() local
108 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
/external/clang/include/clang/Index/
DIndexingAction.h17 class ASTUnit; variable
41 void indexASTUnit(ASTUnit &Unit,
/external/clang/lib/Tooling/
DTooling.cpp464 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
467 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
472 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
487 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
492 std::unique_ptr<ASTUnit>
499 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs( in buildASTFromCodeWithArgs()
506 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/external/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp142 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST()
168 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;")); in TEST()
175 std::unique_ptr<ASTUnit> AST = in TEST()
/external/clang/include/clang/Tooling/
DTooling.h188 std::unique_ptr<ASTUnit>
204 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
328 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/external/clang/lib/Index/
DIndexingAction.cpp165 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IndexCtx) { in indexTranslationUnit()
169 void index::indexASTUnit(ASTUnit &Unit, in indexASTUnit()
/external/clang/unittests/Tooling/
DToolingTest.cpp90 bool FindClassDeclX(ASTUnit *AST) { in FindClassDeclX()
121 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST()
458 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
490 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
/external/clang/tools/c-index-test/
Dcore_main.cpp156 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in printSourceSymbols()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.h37 class ASTUnit; variable
/external/clang/lib/ARCMigrate/
DARCMT.cpp272 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in checkForManualIssues()
548 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in applyTransform()

12