• 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()
1713 std::unique_ptr<ASTUnit> AST; in create() local
1714 AST.reset(new ASTUnit(false)); in create()
1715 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in create()
1716 AST->Diagnostics = Diags; in create()
1717 AST->Invocation = CI; in create()
1718 AST->FileSystemOpts = CI->getFileSystemOpts(); in create()
1723 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS); in create()
1724 AST->UserFilesAreVolatile = UserFilesAreVolatile; in create()
1725 AST->SourceMgr = new SourceManager(AST->getDiagnostics(), *AST->FileMgr, in create()
1728 return AST.release(); in create()
1743 ASTUnit *AST = Unit; in LoadFromCompilerInvocationAction() local
1744 if (!AST) { in LoadFromCompilerInvocationAction()
1747 AST = OwnAST.get(); in LoadFromCompilerInvocationAction()
1748 if (!AST) in LoadFromCompilerInvocationAction()
1756 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCompilerInvocationAction()
1757 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCompilerInvocationAction()
1759 AST->PreambleRebuildCounter = PrecompilePreambleAfterNParses; in LoadFromCompilerInvocationAction()
1760 AST->TUKind = Action ? Action->getTranslationUnitKind() : TU_Complete; in LoadFromCompilerInvocationAction()
1761 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCompilerInvocationAction()
1762 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCompilerInvocationAction()
1775 ProcessWarningOptions(AST->getDiagnostics(), CI->getDiagnosticOpts()); in LoadFromCompilerInvocationAction()
1786 AST->OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in LoadFromCompilerInvocationAction()
1790 Clang->setDiagnostics(&AST->getDiagnostics()); in LoadFromCompilerInvocationAction()
1812 AST->TheSema.reset(); in LoadFromCompilerInvocationAction()
1813 AST->Ctx = nullptr; in LoadFromCompilerInvocationAction()
1814 AST->PP = nullptr; in LoadFromCompilerInvocationAction()
1815 AST->Reader = nullptr; in LoadFromCompilerInvocationAction()
1818 Clang->setFileManager(&AST->getFileManager()); in LoadFromCompilerInvocationAction()
1821 Clang->setSourceManager(&AST->getSourceManager()); in LoadFromCompilerInvocationAction()
1827 TrackerAct.reset(new TopLevelDeclTrackerAction(*AST)); in LoadFromCompilerInvocationAction()
1836 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1846 AST->getCurrentTopLevelHashValue())); in LoadFromCompilerInvocationAction()
1851 *AST, AST->getCurrentTopLevelHashValue())); in LoadFromCompilerInvocationAction()
1856 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1864 AST->transferASTDataFromCompilerInstance(*Clang); in LoadFromCompilerInvocationAction()
1871 return AST; in LoadFromCompilerInvocationAction()
1911 std::unique_ptr<ASTUnit> AST(new ASTUnit(false)); in LoadFromCompilerInvocation() local
1912 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromCompilerInvocation()
1913 AST->Diagnostics = Diags; in LoadFromCompilerInvocation()
1914 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCompilerInvocation()
1915 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCompilerInvocation()
1916 AST->TUKind = TUKind; in LoadFromCompilerInvocation()
1917 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCompilerInvocation()
1918 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCompilerInvocation()
1920 AST->Invocation = CI; in LoadFromCompilerInvocation()
1921 AST->FileSystemOpts = FileMgr->getFileSystemOpts(); in LoadFromCompilerInvocation()
1922 AST->FileMgr = FileMgr; in LoadFromCompilerInvocation()
1923 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromCompilerInvocation()
1927 ASTUnitCleanup(AST.get()); in LoadFromCompilerInvocation()
1932 if (AST->LoadFromCompilerInvocation(std::move(PCHContainerOps), in LoadFromCompilerInvocation()
1935 return AST; in LoadFromCompilerInvocation()
1985 std::unique_ptr<ASTUnit> AST; in LoadFromCommandLine() local
1986 AST.reset(new ASTUnit(false)); in LoadFromCommandLine()
1987 ConfigureDiags(Diags, *AST, CaptureDiagnostics); in LoadFromCommandLine()
1988 AST->Diagnostics = Diags; in LoadFromCommandLine()
1989 AST->FileSystemOpts = CI->getFileSystemOpts(); in LoadFromCommandLine()
1994 AST->FileMgr = new FileManager(AST->FileSystemOpts, VFS); in LoadFromCommandLine()
1995 AST->OnlyLocalDecls = OnlyLocalDecls; in LoadFromCommandLine()
1996 AST->CaptureDiagnostics = CaptureDiagnostics; in LoadFromCommandLine()
1997 AST->TUKind = TUKind; in LoadFromCommandLine()
1998 AST->ShouldCacheCodeCompletionResults = CacheCodeCompletionResults; in LoadFromCommandLine()
1999 AST->IncludeBriefCommentsInCodeCompletion in LoadFromCommandLine()
2001 AST->UserFilesAreVolatile = UserFilesAreVolatile; in LoadFromCommandLine()
2002 AST->NumStoredDiagnosticsFromDriver = StoredDiagnostics.size(); in LoadFromCommandLine()
2003 AST->StoredDiagnostics.swap(StoredDiagnostics); in LoadFromCommandLine()
2004 AST->Invocation = CI; in LoadFromCommandLine()
2006 AST->WriterData.reset(new ASTWriterData()); in LoadFromCommandLine()
2013 ASTUnitCleanup(AST.get()); in LoadFromCommandLine()
2015 if (AST->LoadFromCompilerInvocation(std::move(PCHContainerOps), in LoadFromCommandLine()
2020 AST->StoredDiagnostics.swap(AST->FailedParseDiagnostics); in LoadFromCommandLine()
2021 ErrAST->swap(AST); in LoadFromCommandLine()
2026 return AST.release(); in LoadFromCommandLine()
2091 ASTUnit &AST; member in __anon334b82b20411::AugmentedCodeCompleteConsumer
2095 AugmentedCodeCompleteConsumer(ASTUnit &AST, CodeCompleteConsumer &Next, in AugmentedCodeCompleteConsumer() argument
2098 AST(AST), Next(Next) in AugmentedCodeCompleteConsumer()
2117 if (AST.getASTContext().getLangOpts().CPlusPlus) in AugmentedCodeCompleteConsumer()
2241 C = AST.cached_completion_begin(), in ProcessCodeCompleteResults()
2242 CEnd = AST.cached_completion_end(); in ProcessCodeCompleteResults()
2279 = AST.getCachedCompletionTypes(); in ProcessCodeCompleteResults()