Home
last modified time | relevance | path

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

12

/netbsd/external/apache2/llvm/dist/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()
763 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile()
937 ASTUnit &Unit;
996 ASTUnit &Unit;
1486 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in create()
1502 ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( in LoadFromCompilerInvocationAction()
1673 std::unique_ptr<ASTUnit> ASTUnit::LoadFromCompilerInvocation( in LoadFromCompilerInvocation()
1682 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()
H A DFrontendAction.cpp138 std::unique_ptr<ASTUnit> AST) { in setCurrentInput()
578 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile()
580 ASTUnit::LoadPreprocessorOnly, ASTDiags, CI.getFileSystemOpts(), in BeginSourceFile()
646 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile()
648 ASTUnit::LoadEverything, Diags, CI.getFileSystemOpts(), in BeginSourceFile()
H A DCMakeLists.txt14 ASTUnit.cpp
/netbsd/external/apache2/llvm/dist/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h31 class ASTUnit; variable
165 llvm::Expected<ASTUnit *> loadExternalAST(StringRef LookupName,
176 ASTUnit *Unit);
178 ASTUnit *Unit);
199 ASTImporter &getOrCreateASTImporter(ASTUnit *Unit);
209 llvm::Expected<const T *> importDefinitionImpl(const T *D, ASTUnit *Unit);
219 using LoadResultTy = llvm::Expected<std::unique_ptr<ASTUnit>>;
293 llvm::Expected<ASTUnit *> getASTUnitForFunction(StringRef FunctionName,
313 llvm::Expected<ASTUnit *> getASTUnitForFile(StringRef FileName,
317 using OwningMapTy = BaseMapTy<std::unique_ptr<clang::ASTUnit>>;
[all …]
/netbsd/external/apache2/llvm/dist/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>
761 std::unique_ptr<ASTUnit> *ErrAST = nullptr);
818 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);
/netbsd/external/apache2/llvm/dist/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
74 ASTUnit *AU;
178 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
H A DCIndex.cpp90 bool cxtu::isASTReadError(ASTUnit *AU) { in isASTReadError()
262 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
312 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
3516 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in clang_createTranslationUnit2()
3658 std::unique_ptr<ASTUnit> ErrUnit; in clang_parseTranslationUnit_Impl()
3669 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCommandLine( in clang_parseTranslationUnit_Impl()
3814 ASTUnit *ASTU = getCursorASTUnit(C); in clang_Cursor_isMacroFunctionLike()
3826 ASTUnit *ASTU = getCursorASTUnit(C); in clang_Cursor_isMacroBuiltin()
6193 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent()
6199 ASTUnit *TU = getCursorASTUnit(C); in getRawCursorExtent()
[all …]
H A DCXSourceLocation.cpp129 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocation()
130 ASTUnit::ConcurrencyCheck Check(*CXXUnit); in clang_getLocation()
160 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in clang_getLocationForOffset()
H A DCXType.h21 class ASTUnit; variable
H A DCXCursor.h24 class ASTUnit; variable
243 ASTUnit *getCursorASTUnit(CXCursor Cursor);
H A DIndexing.cpp554 auto Unit = ASTUnit::create(CInvok, Diags, CaptureDiagnostics, in clang_indexSourceFile_Impl()
616 bool Success = ASTUnit::LoadFromCompilerInvocationAction( in clang_indexSourceFile_Impl()
640 static void indexPreprocessingRecord(ASTUnit &Unit, CXIndexDataConsumer &IdxCtx) { in indexPreprocessingRecord()
688 ASTUnit *Unit = cxtu::getASTUnit(TU); in clang_indexTranslationUnit_Impl()
692 ASTUnit::ConcurrencyCheck Check(*Unit); in clang_indexTranslationUnit_Impl()
/netbsd/external/apache2/llvm/dist/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp262 llvm::Expected<ASTUnit *> ASTUnitOrError = in getCrossTUDefinitionImpl()
266 ASTUnit *Unit = *ASTUnitOrError; in getCrossTUDefinitionImpl()
373 llvm::Expected<ASTUnit *>
395 ASTUnit *Unit = LoadedUnit.get(); in getASTUnitForFile()
413 llvm::Expected<ASTUnit *>
435 if (llvm::Expected<ASTUnit *> FoundForFile = in getASTUnitForFunction()
491 llvm::Expected<ASTUnit *> Unit = ASTStorage.getASTUnitForFunction( in loadExternalAST()
540 return ASTUnit::LoadFromASTFile( in loadFromDump()
584 return std::unique_ptr<ASTUnit>(ASTUnit::LoadFromCommandLine( in loadFromSource()
730 ASTUnit *Unit) { in importDefinition()
[all …]
/netbsd/external/apache2/llvm/dist/clang/lib/Tooling/
H A DTooling.cpp575 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
578 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
584 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
600 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
616 std::unique_ptr<ASTUnit>
623 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs( in buildASTFromCodeWithArgs()
628 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/netbsd/external/apache2/llvm/dist/clang/tools/c-index-test/
H A Dcore_main.cpp237 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in printSourceSymbols()
271 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in printSourceSymbolsFromModule()
272 std::string(modulePath), *pchRdr, ASTUnit::LoadASTOnly, Diags, in printSourceSymbolsFromModule()
/netbsd/external/apache2/llvm/dist/clang/include/clang/Index/
H A DIndexingAction.h24 class ASTUnit; variable
54 void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer,
/netbsd/external/apache2/llvm/dist/clang/include/clang/Tooling/
H A DTooling.h204 std::unique_ptr<ASTUnit>
222 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
348 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/netbsd/external/apache2/llvm/dist/clang/docs/
H A DLibASTImporter.rst93 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
95 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
208 Node *getFirstDecl(Matcher M, const std::unique_ptr<ASTUnit> &Unit) {
221 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
223 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
291 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
302 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
346 Note, because of these diagnostics we had to call ``enableSourceFileDiagnostics`` on the ``ASTUnit`…
420 std::unique_ptr<ASTUnit> ToUnit = buildASTFromCode(
433 std::unique_ptr<ASTUnit> FromUnit = buildASTFromCode(
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.h32 class ASTUnit; variable
/netbsd/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DARCMT.cpp271 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in checkForManualIssues()
549 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in applyTransform()
/netbsd/external/apache2/llvm/lib/libclangFrontend/
H A DMakefile11 ASTUnit.cpp \

12