Home
last modified time | relevance | path

Searched refs:ASTUnit (Results 1 – 25 of 28) 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.txt12 ASTUnit.cpp
DAndroid.mk25 ASTUnit.cpp \
DFrontendAction.cpp132 std::unique_ptr<ASTUnit> AST) { in setCurrentInput()
193 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile()
/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.h30 class ASTUnit; variable
99 void printDiagsToStderr(ASTUnit *Unit);
DCursorVisitor.h21 class ASTUnit; variable
66 ASTUnit *AU;
175 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
DCIndex.cpp74 CXTranslationUnit cxtu::MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU) { in MakeCXTranslationUnit()
88 bool cxtu::isASTReadError(ASTUnit *AU) { in isASTReadError()
89 for (ASTUnit::stored_diag_iterator D = AU->stored_diag_begin(), in isASTReadError()
253 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
302 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
519 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren()
526 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(), in VisitChildren()
3036 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in clang_createTranslationUnit2()
3107 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles( in clang_parseTranslationUnit_Impl()
3108 new std::vector<ASTUnit::RemappedFile>()); in clang_parseTranslationUnit_Impl()
[all …]
DCXType.h22 class ASTUnit; variable
DIndexing.cpp573 ASTUnit *Unit = ASTUnit::create(CInvok.get(), Diags, CaptureDiagnostics, in clang_indexSourceFile_Impl()
632 bool Success = ASTUnit::LoadFromCompilerInvocationAction( in clang_indexSourceFile_Impl()
658 static void indexPreprocessingRecord(ASTUnit &Unit, IndexingContext &IdxCtx) { in indexPreprocessingRecord()
689 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IdxCtx) { in indexTranslationUnit()
738 ASTUnit *Unit = cxtu::getASTUnit(TU); in clang_indexTranslationUnit_Impl()
742 ASTUnit::ConcurrencyCheck Check(*Unit); in clang_indexTranslationUnit_Impl()
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()
DCXCursor.h25 class ASTUnit; variable
248 ASTUnit *getCursorASTUnit(CXCursor Cursor);
DCIndexInclusionStack.cpp32 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getInclusions()
DCIndexDiagnostic.cpp162 ASTUnit *AU = cxtu::getASTUnit(TU); in lazyCreateDiags()
199 for (ASTUnit::stored_diag_iterator it = AU->stored_diag_begin(), in lazyCreateDiags()
DCIndexCodeCompletion.cpp669 ASTUnit *AST = cxtu::getASTUnit(TU); in clang_codeCompleteAt_Impl()
677 ASTUnit::ConcurrencyCheck Check(*AST); in clang_codeCompleteAt_Impl()
680 SmallVector<ASTUnit::RemappedFile, 4> RemappedFiles; in clang_codeCompleteAt_Impl()
DCXCursor.cpp784 ASTUnit *TU = getCursorASTUnit(C); in getCursorPreprocessingDirective()
932 ASTUnit *cxcursor::getCursorASTUnit(CXCursor Cursor) { in getCursorASTUnit()
1320 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
1334 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
/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/lib/Tooling/
DTooling.cpp440 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
443 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
448 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
464 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
469 std::unique_ptr<ASTUnit>
476 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs( in buildASTFromCodeWithArgs()
483 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/external/clang/include/clang/Tooling/
DTooling.h185 std::unique_ptr<ASTUnit>
199 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
323 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/external/clang/unittests/Tooling/
DToolingTest.cpp90 bool FindClassDeclX(ASTUnit *AST) { in FindClassDeclX()
121 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST()
403 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
435 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.h37 class ASTUnit; variable
/external/clang/lib/ARCMigrate/
DARCMT.cpp271 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in checkForManualIssues()
547 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in applyTransform()

12