Lines Matching refs:CompilerInstance

1 //===--- CompilerInstance.cpp ---------------------------------------------===//
9 #include "clang/Frontend/CompilerInstance.h"
67 CompilerInstance::CompilerInstance(
76 CompilerInstance::~CompilerInstance() {
80 void CompilerInstance::setInvocation(
85 bool CompilerInstance::shouldBuildGlobalModuleIndex() const {
92 void CompilerInstance::setDiagnostics(DiagnosticsEngine *Value) {
96 void CompilerInstance::setVerboseOutputStream(raw_ostream &Value) {
101 void CompilerInstance::setVerboseOutputStream(std::unique_ptr<raw_ostream> Value) {
106 void CompilerInstance::setTarget(TargetInfo *Value) { Target = Value; }
107 void CompilerInstance::setAuxTarget(TargetInfo *Value) { AuxTarget = Value; }
109 bool CompilerInstance::createTarget() {
162 llvm::vfs::FileSystem &CompilerInstance::getVirtualFileSystem() const {
166 void CompilerInstance::setFileManager(FileManager *Value) {
170 void CompilerInstance::setSourceManager(SourceManager *Value) {
174 void CompilerInstance::setPreprocessor(std::shared_ptr<Preprocessor> Value) {
178 void CompilerInstance::setASTContext(ASTContext *Value) {
185 void CompilerInstance::setSema(Sema *S) {
189 void CompilerInstance::setASTConsumer(std::unique_ptr<ASTConsumer> Value) {
196 void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
200 std::unique_ptr<Sema> CompilerInstance::takeSema() {
204 IntrusiveRefCntPtr<ASTReader> CompilerInstance::getASTReader() const {
207 void CompilerInstance::setASTReader(IntrusiveRefCntPtr<ASTReader> Reader) {
214 CompilerInstance::getModuleDepCollector() const {
218 void CompilerInstance::setModuleDepCollector(
231 static void collectIncludePCH(CompilerInstance &CI,
264 static void collectVFSEntries(CompilerInstance &CI,
335 void CompilerInstance::createDiagnostics(llvm::vfs::FileSystem &VFS,
342 IntrusiveRefCntPtr<DiagnosticsEngine> CompilerInstance::createDiagnostics(
379 FileManager *CompilerInstance::createFileManager(
395 void CompilerInstance::createSourceManager(FileManager &FileMgr) {
446 void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
541 std::string CompilerInstance::getSpecificModuleCachePath(StringRef ModuleHash) {
551 void CompilerInstance::createASTContext() {
611 void CompilerInstance::createPCHExternalASTSource(
625 IntrusiveRefCntPtr<ASTReader> CompilerInstance::createPCHExternalASTSource(
710 void CompilerInstance::createCodeCompletionConsumer() {
724 void CompilerInstance::createFrontendTimer() {
730 CompilerInstance::createCodeCompletionConsumer(Preprocessor &PP,
743 void CompilerInstance::createSema(TranslationUnitKind TUKind,
768 void CompilerInstance::clearOutputFiles(bool EraseFiles) {
806 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createDefaultOutputFile(
826 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createNullOutputFile() {
831 CompilerInstance::createOutputFile(StringRef OutputPath, bool Binary,
845 CompilerInstance::createOutputFileImpl(StringRef OutputPath, bool Binary,
960 bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input){
966 bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input,
1008 bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
1091 void CompilerInstance::printDiagnosticStats() {
1121 void CompilerInstance::LoadRequestedPlugins() {
1158 compileModuleImpl(CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
1161 llvm::function_ref<void(CompilerInstance &)> PreBuildStep =
1162 [](CompilerInstance &) {},
1163 llvm::function_ref<void(CompilerInstance &)> PostBuildStep =
1164 [](CompilerInstance &) {}) {
1227 // CompilerInstance::CompilerInstance is responsible for finalizing the
1229 CompilerInstance Instance(ImportingInstance.getPCHContainerOperations(),
1327 static bool compileModule(CompilerInstance &ImportingInstance,
1385 [&](CompilerInstance &Instance) {
1405 static bool readASTAfterCompileModule(CompilerInstance &ImportingInstance,
1440 static bool compileModuleAndReadASTImpl(CompilerInstance &ImportingInstance,
1467 CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
1536 static bool compileModuleAndReadAST(CompilerInstance &ImportingInstance,
1701 void CompilerInstance::createASTReader() {
1751 bool CompilerInstance::loadModuleFile(
1845 ModuleLoadResult CompilerInstance::findOrCompileModuleAndReadAST(
2010 CompilerInstance::loadModule(SourceLocation ImportLoc,
2197 void CompilerInstance::createModuleFromSource(SourceLocation ImportLoc,
2225 auto PreBuildStep = [&](CompilerInstance &Other) {
2237 auto PostBuildStep = [this](CompilerInstance &Other) {
2249 void CompilerInstance::makeModuleVisible(Module *Mod,
2260 GlobalModuleIndex *CompilerInstance::loadGlobalModuleIndex(
2330 CompilerInstance::lookupMissingImports(StringRef Name,
2353 void CompilerInstance::resetAndLeakSema() { llvm::BuryPointer(takeSema()); }
2355 void CompilerInstance::setExternalSemaSource(