Home
last modified time | relevance | path

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

12

/external/clang/lib/Frontend/
DASTUnit.cpp108 typedef llvm::DenseMap<const ASTUnit *,
130 static OnDiskData &getOnDiskData(const ASTUnit *AU) { in getOnDiskData()
141 static void erasePreambleFile(const ASTUnit *AU) { in erasePreambleFile()
145 static void removeOnDiskEntry(const ASTUnit *AU) { in removeOnDiskEntry()
157 static void setPreambleFile(const ASTUnit *AU, StringRef preambleFile) { in setPreambleFile()
161 static const std::string &getPreambleFile(const ASTUnit *AU) { in getPreambleFile()
183 struct ASTUnit::ASTWriterData {
191 void ASTUnit::clearFileLevelDecls() { in clearFileLevelDecls()
195 void ASTUnit::CleanTemporaryFiles() { in CleanTemporaryFiles()
199 void ASTUnit::addTemporaryFile(StringRef TempFile) { in addTemporaryFile()
[all …]
DASTMerge.cpp48 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile( 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 = in BeginSourceFile()
194 ASTUnit::LoadFromASTFile(InputFile, Diags, CI.getFileSystemOpts()); 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.h28 class ASTUnit; variable
90 void printDiagsToStderr(ASTUnit *Unit);
DCursorVisitor.h21 class ASTUnit; variable
66 ASTUnit *AU;
175 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
DCIndex.cpp73 CXTranslationUnit cxtu::MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU) { in MakeCXTranslationUnit()
87 bool cxtu::isASTReadError(ASTUnit *AU) { in isASTReadError()
88 for (ASTUnit::stored_diag_iterator D = AU->stored_diag_begin(), in isASTReadError()
252 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
301 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
518 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren()
525 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(), in VisitChildren()
2884 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in clang_createTranslationUnit2()
2967 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles( in clang_parseTranslationUnit_Impl()
2968 new std::vector<ASTUnit::RemappedFile>()); in clang_parseTranslationUnit_Impl()
[all …]
DCXType.h22 class ASTUnit; variable
DIndexing.cpp593 ASTUnit *Unit = ASTUnit::create(CInvok.get(), Diags, in clang_indexSourceFile_Impl()
647 bool Success = ASTUnit::LoadFromCompilerInvocationAction(CInvok.get(), Diags, in clang_indexSourceFile_Impl()
693 static void indexPreprocessingRecord(ASTUnit &Unit, IndexingContext &IdxCtx) { in indexPreprocessingRecord()
724 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IdxCtx) { in indexTranslationUnit()
783 ASTUnit *Unit = cxtu::getASTUnit(TU); in clang_indexTranslationUnit_Impl()
787 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
251 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.cpp682 ASTUnit *AST = cxtu::getASTUnit(TU); in clang_codeCompleteAt_Impl()
690 ASTUnit::ConcurrencyCheck Check(*AST); in clang_codeCompleteAt_Impl()
693 SmallVector<ASTUnit::RemappedFile, 4> RemappedFiles; in clang_codeCompleteAt_Impl()
DCXCursor.cpp749 ASTUnit *TU = getCursorASTUnit(C); in getCursorPreprocessingDirective()
896 ASTUnit *cxcursor::getCursorASTUnit(CXCursor Cursor) { in getCursorASTUnit()
1284 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
1298 ASTUnit *unit = getCursorASTUnit(cursor); in clang_getCursorCompletionString()
/external/clang/include/clang/Frontend/
DASTUnit.h66 class ASTUnit : public ModuleLoader {
309 ASTUnit &AST, bool CaptureDiagnostics);
419 ASTUnit(const ASTUnit &) = delete;
420 void operator=(const ASTUnit &) = delete;
422 explicit ASTUnit(bool MainFileIsAST);
474 ASTUnit &Self;
477 explicit ConcurrencyCheck(ASTUnit &Self) in ConcurrencyCheck()
488 ~ASTUnit() override;
709 static ASTUnit *create(CompilerInvocation *CI,
722 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.cpp382 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
385 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
390 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
404 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
409 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code, in buildASTFromCode()
414 std::unique_ptr<ASTUnit>
421 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/external/clang/include/clang/Tooling/
DTooling.h171 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code,
181 std::unique_ptr<ASTUnit>
290 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/external/clang/unittests/Tooling/
DToolingTest.cpp88 bool FindClassDeclX(ASTUnit *AST) { in FindClassDeclX()
119 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;"); in TEST()
306 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
338 std::vector<std::unique_ptr<ASTUnit>> ASTs; in TEST()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.h37 class ASTUnit; variable
/external/clang/lib/ARCMigrate/
DARCMT.cpp266 std::unique_ptr<ASTUnit> Unit( in checkForManualIssues()
267 ASTUnit::LoadFromCompilerInvocationAction(CInvok.release(), Diags)); in checkForManualIssues()
539 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in applyTransform()

12