Searched refs:ASTUnit (Results 1 - 25 of 26) sorted by relevance

12

/external/clang/tools/libclang/
H A DCXType.h22 class ASTUnit;
H A DCXTranslationUnit.h22 class ASTUnit;
31 clang::ASTUnit *TheASTUnit;
41 CXTranslationUnitImpl *MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU);
43 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) {
49 /// \returns true if the ASTUnit has a diagnostic about the AST file being
51 bool isASTReadError(ASTUnit *AU);
H A DCIndexer.h28 class ASTUnit;
90 void printDiagsToStderr(ASTUnit *Unit);
H A DCIndexHigh.cpp16 #include "clang/Frontend/ASTUnit.h"
248 ASTUnit &Unit;
253 FindFileMacroRefVisitData(ASTUnit &Unit, const FileEntry *File,
316 ASTUnit *Unit = cxtu::getASTUnit(TU);
342 ASTUnit &Unit;
346 FindFileIncludesVisitor(ASTUnit &Unit, const FileEntry *File,
388 ASTUnit *Unit = cxtu::getASTUnit(TU);
440 ASTUnit *CXXUnit = cxcursor::getCursorASTUnit(cursor);
444 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
503 ASTUnit *CXXUni
[all...]
H A DCIndexInclusionStack.cpp19 #include "clang/Frontend/ASTUnit.h"
32 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
H A DCursorVisitor.h21 class ASTUnit;
66 ASTUnit *AU;
175 ASTUnit *getASTUnit() const { return AU; }
H A DCXSourceLocation.cpp14 #include "clang/Frontend/ASTUnit.h"
135 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
136 ASTUnit::ConcurrencyCheck Check(*CXXUnit);
165 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
H A DCXCursor.h25 class ASTUnit;
251 ASTUnit *getCursorASTUnit(CXCursor Cursor);
H A DCIndex.cpp30 #include "clang/Frontend/ASTUnit.h"
69 CXTranslationUnit cxtu::MakeCXTranslationUnit(CIndexer *CIdx, ASTUnit *AU) {
83 bool cxtu::isASTReadError(ASTUnit *AU) {
84 for (ASTUnit::stored_diag_iterator D = AU->stored_diag_begin(),
249 ASTUnit *Unit = cxtu::getASTUnit(TU);
298 ASTUnit *Unit = cxtu::getASTUnit(TU);
515 ASTUnit *CXXUnit = cxtu::getASTUnit(TU);
522 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(),
2709 ASTUnit *AU = ASTUnit
[all...]
H A DIndexing.cpp20 #include "clang/Frontend/ASTUnit.h"
594 ASTUnit *Unit = ASTUnit::create(CInvok.get(), Diags,
648 bool Success = ASTUnit::LoadFromCompilerInvocationAction(CInvok.get(), Diags,
694 static void indexPreprocessingRecord(ASTUnit &Unit, IndexingContext &IdxCtx) {
730 static void indexTranslationUnit(ASTUnit &Unit, IndexingContext &IdxCtx) {
789 ASTUnit *Unit = cxtu::getASTUnit(TU);
793 ASTUnit::ConcurrencyCheck Check(*Unit);
H A DCIndexDiagnostic.cpp19 #include "clang/Frontend/ASTUnit.h"
163 ASTUnit *AU = cxtu::getASTUnit(TU);
166 // In normal use, ASTUnit's diagnostics should not change unless we reparse.
176 // that ASTUnit will catch and add to its stored diagnostics vector.
186 // Diagnostics in the ASTUnit were updated, reset the associated
200 for (ASTUnit::stored_diag_iterator it = AU->stored_diag_begin(),
H A DCXCursor.cpp29 #include "clang/Frontend/ASTUnit.h"
707 ASTUnit *TU = getCursorASTUnit(C);
854 ASTUnit *cxcursor::getCursorASTUnit(CXCursor Cursor) {
1108 ASTUnit *unit = getCursorASTUnit(cursor);
1122 ASTUnit *unit = getCursorASTUnit(cursor);
H A DCIndexCodeCompletion.cpp26 #include "clang/Frontend/ASTUnit.h"
681 ASTUnit *AST = cxtu::getASTUnit(TU);
689 ASTUnit::ConcurrencyCheck Check(*AST);
692 SmallVector<ASTUnit::RemappedFile, 4> RemappedFiles;
/external/clang/lib/Frontend/
H A DASTUnit.cpp1 //===--- ASTUnit.cpp - ASTUnit utility ------------------------------------===//
10 // ASTUnit Implementation.
14 #include "clang/Frontend/ASTUnit.h"
86 /// \brief Temporary files that should be removed when the ASTUnit is
108 typedef llvm::DenseMap<const ASTUnit *, OnDiskData *> OnDiskDataMap;
120 // Use the mutex because there can be an alive thread destroying an ASTUnit.
130 static OnDiskData &getOnDiskData(const ASTUnit *AU) {
141 static void erasePreambleFile(const ASTUnit *AU) {
145 static void removeOnDiskEntry(const ASTUnit *A
215 ASTUnit::ASTUnit(bool _MainFileIsAST) function in class:ASTUnit
[all...]
H A DASTMerge.cpp9 #include "clang/Frontend/ASTUnit.h"
48 ASTUnit *Unit = ASTUnit::LoadFromASTFile(ASTFiles[I], Diags,
H A DAndroid.mk28 ASTUnit.cpp \
H A DFrontendAction.cpp14 #include "clang/Frontend/ASTUnit.h"
130 ASTUnit *AST) {
190 ASTUnit *AST = ASTUnit::LoadFromASTFile(InputFile, Diags,
/external/clang/include/clang/Frontend/
H A DFrontendAction.h32 class ASTUnit;
38 std::unique_ptr<ASTUnit> CurrentASTUnit;
144 ASTUnit &getCurrentASTUnit() const {
149 ASTUnit *takeCurrentASTUnit() { return CurrentASTUnit.release(); }
152 ASTUnit *AST = nullptr);
H A DASTUnit.h1 //===--- ASTUnit.h - ASTUnit utility ----------------------------*- C++ -*-===//
10 // ASTUnit utility class.
66 class ASTUnit : public ModuleLoader { class in namespace:clang
133 /// \brief Whether the ASTUnit should delete the remapped buffers.
136 /// Track the top-level decls which appeared in an ASTUnit which was loaded
140 // of a PCH file when using the Index library on an ASTUnit loaded from
153 /// The name of the original source file used to generate this ASTUnit.
310 ASTUnit &AST, bool CaptureDiagnostics);
420 ASTUnit(cons
[all...]
/external/clang/lib/Tooling/
H A DTooling.cpp20 #include "clang/Frontend/ASTUnit.h"
372 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
375 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {}
380 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation(
394 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) {
399 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code,
404 std::unique_ptr<ASTUnit>
411 std::vector<std::unique_ptr<ASTUnit>> ASTs;
/external/clang/unittests/Tooling/
H A DToolingTest.cpp13 #include "clang/Frontend/ASTUnit.h"
84 bool FindClassDeclX(ASTUnit *AST) {
111 std::unique_ptr<ASTUnit> AST = buildASTFromCode("class X;");
313 std::vector<std::unique_ptr<ASTUnit>> ASTs;
345 std::vector<std::unique_ptr<ASTUnit>> ASTs;
/external/clang/include/clang/Tooling/
H A DTooling.h164 std::unique_ptr<ASTUnit> buildASTFromCode(const Twine &Code,
174 std::unique_ptr<ASTUnit>
287 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/external/clang/lib/ARCMigrate/
H A DARCMT.cpp13 #include "clang/Frontend/ASTUnit.h"
266 std::unique_ptr<ASTUnit> Unit(
267 ASTUnit::LoadFromCompilerInvocationAction(CInvok.release(), Diags));
539 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction(
/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.h14 #include "clang/Frontend/ASTUnit.h"
132 std::unique_ptr<ASTUnit> AST(buildASTFromCodeWithArgs(Code, Args));
/external/clang/include/clang/Serialization/
H A DASTReader.h62 class ASTUnit; // FIXME: Layering violation and egregious hack.
325 friend class ASTUnit; // ASTUnit needs to remap source locations.

Completed in 311 milliseconds

12