Searched refs:CInvok (Results 1 – 4 of 4) sorted by relevance
176 std::unique_ptr<CompilerInvocation> CInvok; in createInvocationForMigration() local177 CInvok.reset(new CompilerInvocation(origCI)); in createInvocationForMigration()178 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration()195 CInvok->getPreprocessorOpts().addMacroDef(define); in createInvocationForMigration()196 CInvok->getLangOpts()->ObjCAutoRefCount = true; in createInvocationForMigration()197 CInvok->getLangOpts()->setGC(LangOptions::NonGC); in createInvocationForMigration()198 CInvok->getDiagnosticOpts().ErrorLimit = 0; in createInvocationForMigration()199 CInvok->getDiagnosticOpts().PedanticErrors = 0; in createInvocationForMigration()204 I = CInvok->getDiagnosticOpts().Warnings.begin(), in createInvocationForMigration()205 E = CInvok->getDiagnosticOpts().Warnings.end(); I != E; ++I) { in createInvocationForMigration()[all …]
127 std::unique_ptr<CompilerInvocation> CInvok; in createChainedIncludesSource() local128 CInvok.reset(new CompilerInvocation(CI.getInvocation())); in createChainedIncludesSource()130 CInvok->getPreprocessorOpts().ChainedIncludes.clear(); in createChainedIncludesSource()131 CInvok->getPreprocessorOpts().ImplicitPCHInclude.clear(); in createChainedIncludesSource()132 CInvok->getPreprocessorOpts().DisablePCHOrModuleValidation = in createChainedIncludesSource()134 CInvok->getPreprocessorOpts().Includes.clear(); in createChainedIncludesSource()135 CInvok->getPreprocessorOpts().MacroIncludes.clear(); in createChainedIncludesSource()136 CInvok->getPreprocessorOpts().Macros.clear(); in createChainedIncludesSource()138 CInvok->getFrontendOpts().Inputs.clear(); in createChainedIncludesSource()140 CInvok->getFrontendOpts().Inputs.push_back(InputFile); in createChainedIncludesSource()[all …]
511 std::shared_ptr<CompilerInvocation> CInvok = in clang_indexSourceFile_Impl() local514 if (!CInvok) in clang_indexSourceFile_Impl()522 CInvokCleanup(&CInvok); in clang_indexSourceFile_Impl()524 if (CInvok->getFrontendOpts().Inputs.empty()) in clang_indexSourceFile_Impl()537 CInvok->getPreprocessorOpts().addRemappedFile(UF.Filename, MB.get()); in clang_indexSourceFile_Impl()545 CInvok->getLangOpts()->SpellChecking = false; in clang_indexSourceFile_Impl()548 CInvok->getDiagnosticOpts().IgnoreWarnings = true; in clang_indexSourceFile_Impl()551 CInvok->getHeaderSearchOpts().ModuleFormat = std::string( in clang_indexSourceFile_Impl()554 auto Unit = ASTUnit::create(CInvok, Diags, CaptureDiagnostics, in clang_indexSourceFile_Impl()570 CInvok->getLangOpts()->CPlusPlus; in clang_indexSourceFile_Impl()[all …]
223 auto CInvok = createInvocationFromCommandLine(ArgsWithProgName, Diags); in printSourceSymbols() local224 if (!CInvok) in printSourceSymbols()238 std::move(CInvok), PCHContainerOps, Diags, IndexAction.get())); in printSourceSymbols()