• Home
  • Raw
  • Download

Lines Matching refs:AST

646                              ASTUnit &AST, bool CaptureDiagnostics) {  in ConfigureDiags()  argument
649 Diags->setClient(new StoredDiagnosticConsumer(AST.StoredDiagnostics)); in ConfigureDiags()
659 std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); in LoadFromASTFile() local
663 ASTUnitCleanup(AST.get()); in LoadFromASTFile()
668 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromASTFile()
670 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromASTFile()
671 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromASTFile()
672 AST->Diagnostics = Diags; in LoadFromASTFile()
674 AST->FileMgr = new FileManager(FileSystemOpts, VFS); in LoadFromASTFile()
675 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromASTFile()
676 AST->SourceMgr = new SourceManager(AST->getDiagnostics(), in LoadFromASTFile()
677 AST->getFileManager(), in LoadFromASTFile()
679 AST->HSOpts = new HeaderSearchOptions(); in LoadFromASTFile()
680 AST->HSOpts->ModuleFormat = PCHContainerRdr.getFormat(); in LoadFromASTFile()
681 AST->HeaderInfo.reset(new HeaderSearch(AST->HSOpts, in LoadFromASTFile()
682 AST->getSourceManager(), in LoadFromASTFile()
683 AST->getDiagnostics(), in LoadFromASTFile()
684 AST->ASTFileLangOpts, in LoadFromASTFile()
694 HeaderSearch &HeaderInfo = *AST->HeaderInfo; in LoadFromASTFile()
697 AST->PP = in LoadFromASTFile()
698 new Preprocessor(PPOpts, AST->getDiagnostics(), AST->ASTFileLangOpts, in LoadFromASTFile()
699 AST->getSourceManager(), HeaderInfo, *AST, in LoadFromASTFile()
702 Preprocessor &PP = *AST->PP; in LoadFromASTFile()
704 AST->Ctx = new ASTContext(AST->ASTFileLangOpts, AST->getSourceManager(), in LoadFromASTFile()
707 ASTContext &Context = *AST->Ctx; in LoadFromASTFile()
712 AST->Reader = new ASTReader(PP, Context, PCHContainerRdr, { }, in LoadFromASTFile()
717 AST->Reader->setListener(llvm::make_unique<ASTInfoCollector>( in LoadFromASTFile()
718 *AST->PP, Context, AST->ASTFileLangOpts, AST->TargetOpts, AST->Target, in LoadFromASTFile()
726 Context.setExternalSource(AST->Reader); in LoadFromASTFile()
728 switch (AST->Reader->ReadAST(Filename, serialization::MK_MainFile, in LoadFromASTFile()
739 AST->getDiagnostics().Report(diag::err_fe_unable_to_load_pch); in LoadFromASTFile()
743 AST->OriginalSourceFile = AST->Reader->getOriginalSourceFile(); in LoadFromASTFile()
748 AST->Consumer.reset(new ASTConsumer); in LoadFromASTFile()
751 AST->TheSema.reset(new Sema(PP, Context, *AST->Consumer)); in LoadFromASTFile()
752 AST->TheSema->Initialize(); in LoadFromASTFile()
753 AST->Reader->InitializeSema(*AST->TheSema); in LoadFromASTFile()
756 AST->getDiagnostics().getClient()->BeginSourceFile(Context.getLangOpts(),&PP); in LoadFromASTFile()
758 return AST; in LoadFromASTFile()
1705 std::unique_ptr<ASTUnit> AST; in create() local
1706 AST.reset(new ASTUnit(false)); in create()
1707 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in create()
1708 AST->Diagnostics = Diags; in create()
1709 AST->Invocation = CI; in create()
1710 AST->FileSystemOpts = CI->getFileSystemOpts(); in create()
1715 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS); in create()
1716 AST->UserFilesAreVolatile = UserFilesAreVolatile; in create()
1717 AST->SourceMgr = new SourceManager(AST->getDiagnostics(), *AST->FileMgr, in create()
1720 return AST.release(); in create()
1735 ASTUnit *AST = Unit; in LoadFromCompilerInvocationAction() local
1736 if (!AST) { in LoadFromCompilerInvocationAction()
1739 AST = OwnAST.get(); in LoadFromCompilerInvocationAction()
1740 if (!AST) in LoadFromCompilerInvocationAction()
1748 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCompilerInvocationAction()
1749 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCompilerInvocationAction()
1751 AST->PreambleRebuildCounter = PrecompilePreambleAfterNParses; in LoadFromCompilerInvocationAction()
1752 AST->TUKind = Action ? Action->getTranslationUnitKind() : TU_Complete; in LoadFromCompilerInvocationAction()
1753 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCompilerInvocationAction()
1754 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCompilerInvocationAction()
1767 ProcessWarningOptions(AST->getDiagnostics(), CI->getDiagnosticOpts()); in LoadFromCompilerInvocationAction()
1778 AST->OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in LoadFromCompilerInvocationAction()
1782 Clang->setDiagnostics(&AST->getDiagnostics()); in LoadFromCompilerInvocationAction()
1804 AST->TheSema.reset(); in LoadFromCompilerInvocationAction()
1805 AST->Ctx = nullptr; in LoadFromCompilerInvocationAction()
1806 AST->PP = nullptr; in LoadFromCompilerInvocationAction()
1807 AST->Reader = nullptr; in LoadFromCompilerInvocationAction()
1810 Clang->setFileManager(&AST->getFileManager()); in LoadFromCompilerInvocationAction()
1813 Clang->setSourceManager(&AST->getSourceManager()); in LoadFromCompilerInvocationAction()
1819 TrackerAct.reset(new TopLevelDeclTrackerAction(*AST)); in LoadFromCompilerInvocationAction()
1828 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1838 AST->getCurrentTopLevelHashValue())); in LoadFromCompilerInvocationAction()
1843 *AST, AST->getCurrentTopLevelHashValue())); in LoadFromCompilerInvocationAction()
1848 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1856 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1863 return AST; in LoadFromCompilerInvocationAction()
1903 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in LoadFromCompilerInvocation() local
1904 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromCompilerInvocation()
1905 AST->Diagnostics = Diags; in LoadFromCompilerInvocation()
1906 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCompilerInvocation()
1907 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCompilerInvocation()
1908 AST->TUKind = TUKind; in LoadFromCompilerInvocation()
1909 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCompilerInvocation()
1910 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCompilerInvocation()
1912 AST->Invocation = CI; in LoadFromCompilerInvocation()
1913 AST->FileSystemOpts = FileMgr->getFileSystemOpts(); in LoadFromCompilerInvocation()
1914 AST->FileMgr = FileMgr; in LoadFromCompilerInvocation()
1915 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromCompilerInvocation()
1919 ASTUnitCleanup(AST.get()); in LoadFromCompilerInvocation()
1924 if (AST->LoadFromCompilerInvocation(PCHContainerOps, in LoadFromCompilerInvocation()
1927 return AST; in LoadFromCompilerInvocation()
1977 std::unique_ptr<ASTUnit> AST; in LoadFromCommandLine() local
1978 AST.reset(new ASTUnit(false)); in LoadFromCommandLine()
1979 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromCommandLine()
1980 AST->Diagnostics = Diags; in LoadFromCommandLine()
1981 AST->FileSystemOpts = CI->getFileSystemOpts(); in LoadFromCommandLine()
1986 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS); in LoadFromCommandLine()
1987 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCommandLine()
1988 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCommandLine()
1989 AST->TUKind = TUKind; in LoadFromCommandLine()
1990 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCommandLine()
1991 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCommandLine()
1993 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromCommandLine()
1994 AST->NumStoredDiagnosticsFromDriver = StoredDiagnostics.size(); in LoadFromCommandLine()
1995 AST->StoredDiagnostics.swap(StoredDiagnostics); in LoadFromCommandLine()
1996 AST->Invocation = CI; in LoadFromCommandLine()
1998 AST->WriterData.reset(new ASTWriterData()); in LoadFromCommandLine()
2005 ASTUnitCleanup(AST.get()); in LoadFromCommandLine()
2007 if (AST->LoadFromCompilerInvocation(PCHContainerOps, in LoadFromCommandLine()
2012 AST->StoredDiagnostics.swap(AST->FailedParseDiagnostics); in LoadFromCommandLine()
2013 ErrAST->swap(AST); in LoadFromCommandLine()
2018 return AST.release(); in LoadFromCommandLine()
2082 ASTUnit &AST; member in __anon8545f6df0411::AugmentedCodeCompleteConsumer
2086 AugmentedCodeCompleteConsumer(ASTUnit &AST, CodeCompleteConsumer &Next, in AugmentedCodeCompleteConsumer() argument
2089 AST(AST), Next(Next) in AugmentedCodeCompleteConsumer()
2108 if (AST.getASTContext().getLangOpts().CPlusPlus) in AugmentedCodeCompleteConsumer()
2232 C = AST.cached_completion_begin(), in ProcessCodeCompleteResults()
2233 CEnd = AST.cached_completion_end(); in ProcessCodeCompleteResults()
2270 = AST.getCachedCompletionTypes(); in ProcessCodeCompleteResults()