Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DASTUnit.cpp218 struct ASTUnit::ASTWriterData {
227 void ASTUnit::clearFileLevelDecls() { in clearFileLevelDecls()
242 ASTUnit::ASTUnit(bool _MainFileIsAST) in ASTUnit() function in ASTUnit
251 ASTUnit::~ASTUnit() { in ~ASTUnit()
275 void ASTUnit::setPreprocessor(std::shared_ptr<Preprocessor> PP) { in setPreprocessor()
279 void ASTUnit::enableSourceFileDiagnostics() { in enableSourceFileDiagnostics()
364 void ASTUnit::CacheCodeCompletionResults() { in CacheCodeCompletionResults()
507 void ASTUnit::ClearCachedCompletionResults() { in ClearCachedCompletionResults()
643 SmallVectorImpl<ASTUnit::StandaloneDiagnostic> *StandaloneDiags;
651 SmallVectorImpl<ASTUnit::StandaloneDiagnostic> *StandaloneDiags, in FilterAndStoreDiagnosticConsumer()
[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 DCMakeLists.txt15 ASTUnit.cpp
H A DFrontendAction.cpp146 std::unique_ptr<ASTUnit> AST) { in setCurrentInput()
614 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile()
616 ASTUnit::LoadPreprocessorOnly, ASTDiags, CI.getFileSystemOpts(), in BeginSourceFile()
682 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile( in BeginSourceFile()
684 ASTUnit::LoadEverything, Diags, CI.getFileSystemOpts(), in BeginSourceFile()
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DASTUnit.h88 class ASTUnit {
255 ASTUnit &AST, CaptureDiagsKind CaptureDiagnostics);
367 explicit ASTUnit(bool MainFileIsAST);
407 ASTUnit &Self;
410 explicit ConcurrencyCheck(ASTUnit &Self) : Self(Self) { in ConcurrencyCheck()
419 ASTUnit(const ASTUnit &) = delete;
420 ASTUnit &operator=(const ASTUnit &) = delete;
421 ~ASTUnit();
664 static std::unique_ptr<ASTUnit>
690 static std::unique_ptr<ASTUnit>
[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);
/openbsd-src/gnu/llvm/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h31 class ASTUnit; variable
168 llvm::Expected<ASTUnit *> loadExternalAST(StringRef LookupName,
179 ASTUnit *Unit);
181 ASTUnit *Unit);
210 ASTImporter &getOrCreateASTImporter(ASTUnit *Unit);
220 llvm::Expected<const T *> importDefinitionImpl(const T *D, ASTUnit *Unit);
230 using LoadResultTy = llvm::Expected<std::unique_ptr<ASTUnit>>;
305 llvm::Expected<ASTUnit *> getASTUnitForFunction(StringRef FunctionName,
325 llvm::Expected<ASTUnit *> getASTUnitForFile(StringRef FileName,
329 using OwningMapTy = BaseMapTy<std::unique_ptr<clang::ASTUnit>>;
[all …]
/openbsd-src/gnu/llvm/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.h21 class ASTUnit; variable
81 ASTUnit *AU;
185 ASTUnit *getASTUnit() const { return AU; } in getASTUnit()
H A DCXExtractAPI.cpp81 ASTUnit *Unit = cxtu::getASTUnit(tu); in clang_createAPISet()
121 ASTUnit *Unit = cxtu::getASTUnit(TU); in clang_getSymbolGraphForCursor()
H A DCIndex.cpp75 std::unique_ptr<ASTUnit> AU) { in MakeCXTranslationUnit()
91 bool cxtu::isASTReadError(ASTUnit *AU) { in isASTReadError()
92 for (ASTUnit::stored_diag_iterator D = AU->stored_diag_begin(), in isASTReadError()
263 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitFileRegion()
313 ASTUnit *Unit = cxtu::getASTUnit(TU); in visitDeclsFromFileRegion()
528 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in VisitChildren()
535 for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(), in VisitChildren()
3740 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in clang_createTranslationUnit2()
3742 ASTUnit::LoadEverything, Diags, FileSystemOpts, /*UseDebugInfo=*/false, in clang_createTranslationUnit2()
3827 std::unique_ptr<std::vector<ASTUnit::RemappedFile>> RemappedFiles( in clang_parseTranslationUnit_Impl()
[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 DCXCursor.h24 class ASTUnit; variable
243 ASTUnit *getCursorASTUnit(CXCursor Cursor);
/openbsd-src/gnu/llvm/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp290 llvm::Expected<ASTUnit *> ASTUnitOrError = in getCrossTUDefinitionImpl()
294 ASTUnit *Unit = *ASTUnitOrError; in getCrossTUDefinitionImpl()
401 llvm::Expected<ASTUnit *>
420 std::unique_ptr<ASTUnit> LoadedUnit = std::move(LoadAttempt.get()); in getASTUnitForFile()
423 ASTUnit *Unit = LoadedUnit.get(); in getASTUnitForFile()
441 llvm::Expected<ASTUnit *>
463 if (llvm::Expected<ASTUnit *> FoundForFile = in getASTUnitForFunction()
510 llvm::Expected<ASTUnit *> CrossTranslationUnitContext::loadExternalAST( in loadExternalAST()
519 llvm::Expected<ASTUnit *> Unit = ASTStorage.getASTUnitForFunction( in loadExternalAST()
568 return ASTUnit::LoadFromASTFile( in loadFromDump()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Index/
H A DIndexingAction.h24 class ASTUnit; variable
54 void indexASTUnit(ASTUnit &Unit, IndexDataConsumer &DataConsumer,
/openbsd-src/gnu/llvm/clang/tools/c-index-test/
H A Dcore_main.cpp241 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in printSourceSymbols()
275 std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( in printSourceSymbolsFromModule()
276 std::string(modulePath), *pchRdr, ASTUnit::LoadASTOnly, Diags, in printSourceSymbolsFromModule()
/openbsd-src/gnu/llvm/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp154 std::unique_ptr<ASTUnit> Unit = ASTUnit::LoadFromASTFile( in HandleAST()
156 ASTUnit::LoadASTOnly, DiagEngine, CI->getFileSystemOpts()); in HandleAST()
/openbsd-src/gnu/llvm/clang/lib/Tooling/
H A DTooling.cpp609 std::vector<std::unique_ptr<ASTUnit>> &ASTs;
612 ASTBuilderAction(std::vector<std::unique_ptr<ASTUnit>> &ASTs) : ASTs(ASTs) {} in ASTBuilderAction()
618 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromCompilerInvocation( in runInvocation()
634 int ClangTool::buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs) { in buildASTs()
650 std::unique_ptr<ASTUnit>
657 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs( in buildASTFromCodeWithArgs()
662 std::vector<std::unique_ptr<ASTUnit>> ASTs; in buildASTFromCodeWithArgs()
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/
H A DTooling.h211 std::unique_ptr<ASTUnit>
229 std::unique_ptr<ASTUnit> buildASTFromCodeWithArgs(
362 int buildASTs(std::vector<std::unique_ptr<ASTUnit>> &ASTs);
/openbsd-src/gnu/llvm/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(
/openbsd-src/gnu/usr.bin/clang/libclangFrontend/
H A DMakefile13 ASTUnit.cpp \
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DARCMT.cpp269 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in checkForManualIssues()
547 std::unique_ptr<ASTUnit> Unit(ASTUnit::LoadFromCompilerInvocationAction( in applyTransform()
/openbsd-src/gnu/llvm/clang/tools/clang-diff/
H A DClangDiff.cpp86 static std::unique_ptr<ASTUnit>
107 std::vector<std::unique_ptr<ASTUnit>> ASTs; in getAST()

12