Lines Matching refs:ASTUnit
216 struct ASTUnit::ASTWriterData {
225 void ASTUnit::clearFileLevelDecls() { in clearFileLevelDecls()
240 ASTUnit::ASTUnit(bool _MainFileIsAST) in ASTUnit() function in ASTUnit
249 ASTUnit::~ASTUnit() { in ~ASTUnit()
273 void ASTUnit::setPreprocessor(std::shared_ptr<Preprocessor> PP) { in setPreprocessor()
277 void ASTUnit::enableSourceFileDiagnostics() { in enableSourceFileDiagnostics()
363 void ASTUnit::CacheCodeCompletionResults() { in CacheCodeCompletionResults()
506 void ASTUnit::ClearCachedCompletionResults() { in ClearCachedCompletionResults()
647 SmallVectorImpl<ASTUnit::StandaloneDiagnostic> *StandaloneDiags;
655 SmallVectorImpl<ASTUnit::StandaloneDiagnostic> *StandaloneDiags, in FilterAndStoreDiagnosticConsumer()
686 SmallVectorImpl<ASTUnit::StandaloneDiagnostic> *StandaloneDiags) in CaptureDroppedDiagnostics()
707 static ASTUnit::StandaloneDiagnostic
751 IntrusiveRefCntPtr<ASTReader> ASTUnit::getASTReader() const { in getASTReader()
755 ASTMutationListener *ASTUnit::getASTMutationListener() { in getASTMutationListener()
761 ASTDeserializationListener *ASTUnit::getDeserializationListener() { in getDeserializationListener()
768 ASTUnit::getBufferForFile(StringRef Filename, std::string *ErrorStr) { in getBufferForFile()
779 void ASTUnit::ConfigureDiags(IntrusiveRefCntPtr<DiagnosticsEngine> Diags, in ConfigureDiags()
780 ASTUnit &AST, in ConfigureDiags()
789 std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( in LoadFromASTFile()
796 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile()
799 llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit> in LoadFromASTFile()
973 ASTUnit &Unit;
977 TopLevelDeclTrackerConsumer(ASTUnit &_Unit, unsigned &Hash) in TopLevelDeclTrackerConsumer()
1032 ASTUnit &Unit;
1044 TopLevelDeclTrackerAction(ASTUnit &_Unit) : Unit(_Unit) {} in TopLevelDeclTrackerAction()
1094 llvm::SmallVector<ASTUnit::StandaloneDiagnostic, 4> PreambleDiags;
1131 bool ASTUnit::Parse(std::shared_ptr<PCHContainerOperations> PCHContainerOps, in Parse()
1270 static ASTUnit::StandaloneFixIt makeStandaloneFixIt(const SourceManager &SM, in makeStandaloneFixIt()
1273 ASTUnit::StandaloneFixIt OutFix; in makeStandaloneFixIt()
1282 static ASTUnit::StandaloneDiagnostic
1285 ASTUnit::StandaloneDiagnostic OutDiag; in makeStandaloneDiagnostic()
1327 ASTUnit::getMainBufferWithPrecompiledPreamble( in getMainBufferWithPrecompiledPreamble()
1454 void ASTUnit::RealizeTopLevelDeclsFromPreamble() { in RealizeTopLevelDeclsFromPreamble()
1470 void ASTUnit::transferASTDataFromCompilerInstance(CompilerInstance &CI) { in transferASTDataFromCompilerInstance()
1489 StringRef ASTUnit::getMainFileName() const { in getMainFileName()
1507 StringRef ASTUnit::getASTFileName() const { in getASTFileName()
1516 std::unique_ptr<ASTUnit>
1517 ASTUnit::create(std::shared_ptr<CompilerInvocation> CI, in create()
1521 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in create()
1537 ASTUnit *ASTUnit::LoadFromCompilerInvocationAction( in LoadFromCompilerInvocationAction()
1541 ASTUnit *Unit, bool Persistent, StringRef ResourceFilesPath, in LoadFromCompilerInvocationAction()
1544 bool UserFilesAreVolatile, std::unique_ptr<ASTUnit> *ErrAST) { in LoadFromCompilerInvocationAction()
1547 std::unique_ptr<ASTUnit> OwnAST; in LoadFromCompilerInvocationAction()
1548 ASTUnit *AST = Unit; in LoadFromCompilerInvocationAction()
1570 llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit> in LoadFromCompilerInvocationAction()
1674 bool ASTUnit::LoadFromCompilerInvocation( in LoadFromCompilerInvocation()
1708 std::unique_ptr<ASTUnit> ASTUnit::LoadFromCompilerInvocation( in LoadFromCompilerInvocation()
1717 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in LoadFromCompilerInvocation()
1732 llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit> in LoadFromCompilerInvocation()
1745 std::unique_ptr<ASTUnit> ASTUnit::LoadFromCommandLine( in LoadFromCommandLine()
1757 std::unique_ptr<ASTUnit> *ErrAST, in LoadFromCommandLine()
1805 std::unique_ptr<ASTUnit> AST; in LoadFromCommandLine()
1806 AST.reset(new ASTUnit(false)); in LoadFromCommandLine()
1833 llvm::CrashRecoveryContextCleanupRegistrar<ASTUnit> in LoadFromCommandLine()
1851 bool ASTUnit::Reparse(std::shared_ptr<PCHContainerOperations> PCHContainerOps, in Reparse()
1909 void ASTUnit::ResetForParse() { in ResetForParse()
1933 ASTUnit &AST;
1937 AugmentedCodeCompleteConsumer(ASTUnit &AST, CodeCompleteConsumer &Next, in AugmentedCodeCompleteConsumer()
2089 for (ASTUnit::cached_completion_iterator in ProcessCodeCompleteResults()
2166 void ASTUnit::CodeComplete( in CodeComplete()
2323 bool ASTUnit::Save(StringRef File) { in Save()
2354 bool ASTUnit::serialize(raw_ostream &OS) { in serialize()
2367 void ASTUnit::TranslateStoredDiagnostics( in TranslateStoredDiagnostics()
2426 void ASTUnit::addFileLevelDecl(Decl *D) { in addFileLevelDecl()
2467 void ASTUnit::findFileRegionDecls(FileID File, unsigned Offset, unsigned Length, in findFileRegionDecls()
2510 SourceLocation ASTUnit::getLocation(const FileEntry *File, in getLocation()
2517 SourceLocation ASTUnit::getLocation(const FileEntry *File, in getLocation()
2527 SourceLocation ASTUnit::mapLocationFromPreamble(SourceLocation Loc) const { in mapLocationFromPreamble()
2548 SourceLocation ASTUnit::mapLocationToPreamble(SourceLocation Loc) const { in mapLocationToPreamble()
2566 bool ASTUnit::isInPreambleFileID(SourceLocation Loc) const { in isInPreambleFileID()
2577 bool ASTUnit::isInMainFileID(SourceLocation Loc) const { in isInMainFileID()
2588 SourceLocation ASTUnit::getEndOfPreambleFileID() const { in getEndOfPreambleFileID()
2599 SourceLocation ASTUnit::getStartOfMainFileID() const { in getStartOfMainFileID()
2611 ASTUnit::getLocalPreprocessingEntities() const { in getLocalPreprocessingEntities()
2625 bool ASTUnit::visitLocalTopLevelDecls(void *context, DeclVisitorFn Fn) { in visitLocalTopLevelDecls()
2637 for (ASTUnit::top_level_iterator TL = top_level_begin(), in visitLocalTopLevelDecls()
2647 OptionalFileEntryRef ASTUnit::getPCHFile() { in getPCHFile()
2675 bool ASTUnit::isModuleFile() const { in isModuleFile()
2679 InputKind ASTUnit::getInputKind() const { in getInputKind()
2705 ASTUnit::ConcurrencyState::ConcurrencyState() { in ConcurrencyState()
2709 ASTUnit::ConcurrencyState::~ConcurrencyState() { in ~ConcurrencyState()
2713 void ASTUnit::ConcurrencyState::start() { in start()
2718 void ASTUnit::ConcurrencyState::finish() { in finish()
2724 ASTUnit::ConcurrencyState::ConcurrencyState() { Mutex = nullptr; } in ConcurrencyState()
2725 ASTUnit::ConcurrencyState::~ConcurrencyState() {} in ~ConcurrencyState()
2726 void ASTUnit::ConcurrencyState::start() {} in start()
2727 void ASTUnit::ConcurrencyState::finish() {} in finish()