Lines Matching defs:AST

10 #include "clang/AST/ASTConsumer.h"
11 #include "clang/AST/ASTContext.h"
12 #include "clang/AST/DeclGroup.h"
152 std::unique_ptr<ASTUnit> AST) {
154 CurrentASTUnit = std::move(AST);
613 // If we're replaying the build of an AST file, import it and set up
618 // The AST unit populates its own diagnostics engine rather than ours.
627 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile(
631 if (!AST)
635 // are inherited from the AST unit.
636 CI.getHeaderSearchOpts() = AST->getHeaderSearchOpts();
637 CI.getPreprocessorOpts() = AST->getPreprocessorOpts();
638 CI.getLangOpts() = AST->getLangOpts();
642 CI.setFileManager(&AST->getFileManager());
644 CI.getSourceManager().initializeForReplay(AST->getSourceManager());
646 // Preload all the module files loaded transitively by the AST unit. Also
647 // load all module map files that were parsed as part of building the AST
649 if (auto ASTReader = AST->getASTReader()) {
664 auto Kind = AST->getInputKind();
667 AST->getPreprocessor().getHeaderSearchInfo().lookupModule(
668 AST->getLangOpts().CurrentModule, SourceLocation(),
673 auto &OldSM = AST->getSourceManager();
680 setCurrentInput(Input, std::move(AST));
683 // AST files follow a very different path, since they share objects via the
684 // AST unit.
688 "This action does not have AST file support!");
695 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile(
700 if (!AST)
709 CI.setFileManager(&AST->getFileManager());
710 CI.setSourceManager(&AST->getSourceManager());
711 CI.setPreprocessor(AST->getPreprocessorPtr());
715 CI.setASTContext(&AST->getASTContext());
717 setCurrentInput(Input, std::move(AST));
723 // Create the AST consumer.
798 // Check whether this is an acceptable AST file.
944 // Create the AST context and consumer unless this is a preprocessor only
1002 // If modules are enabled, create the AST reader before creating
1018 // Initialize built-in info as long as we aren't using an external AST
1044 // If there is a layout overrides file, attach an external AST source that
1140 // The resources are owned by AST when the current file is AST.