Lines Matching refs:Compiler

34   CreateASTConsumer(clang::CompilerInstance &Compiler,  in CreateASTConsumer()  argument
41 clang::CompilerInstance *Compiler = &getCompilerInstance(); in ExecuteAction() local
42 assert(!Compiler->hasSema() && "CI already has Sema"); in ExecuteAction()
46 !Compiler->getFrontendOpts().CodeCompletionAt.FileName.empty()) in ExecuteAction()
47 Compiler->createCodeCompletionConsumer(); in ExecuteAction()
50 if (Compiler->hasCodeCompletionConsumer()) in ExecuteAction()
51 CompletionConsumer = &Compiler->getCodeCompletionConsumer(); in ExecuteAction()
53 Compiler->createSema(getTranslationUnitKind(), CompletionConsumer); in ExecuteAction()
54 SemaSource.setCompilerInstance(Compiler); in ExecuteAction()
55 Compiler->getSema().addExternalSource(&SemaSource); in ExecuteAction()
57 clang::ParseAST(Compiler->getSema(), Compiler->getFrontendOpts().ShowStats, in ExecuteAction()
58 Compiler->getFrontendOpts().SkipFunctionBodies); in ExecuteAction()
91 clang::CompilerInstance Compiler(PCHContainerOps); in runInvocation() local
92 Compiler.setInvocation(std::move(Invocation)); in runInvocation()
93 Compiler.setFileManager(Files); in runInvocation()
97 Compiler.createDiagnostics(new clang::IgnoringDiagConsumer, in runInvocation()
99 Compiler.createSourceManager(*Files); in runInvocation()
103 Compiler.getDiagnostics().setErrorLimit(0); in runInvocation()
108 Compiler.ExecuteAction(*ScopedToolAction); in runInvocation()
111 Compiler.getSourceManager(), in runInvocation()
112 Compiler.getPreprocessor().getHeaderSearchInfo())); in runInvocation()
117 return !Compiler.getDiagnostics().hasFatalErrorOccurred(); in runInvocation()