Home
last modified time | relevance | path

Searched refs:PPOpts (Results 1 – 22 of 22) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPreprocessor.cpp79 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, in Preprocessor() argument
85 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts), in Preprocessor()
154 if (!this->PPOpts->PCHThroughHeader.empty() && in Preprocessor()
155 !this->PPOpts->ImplicitPCHInclude.empty()) in Preprocessor()
158 if (this->PPOpts->GeneratePreamble) in Preprocessor()
162 this->PPOpts->ExcludedConditionalDirectiveSkipMappings; in Preprocessor()
566 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile()
571 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile()
578 << PPOpts->PCHThroughHeader; in EnterMainSourceFile()
604 return TUKind == TU_Prefix && !PPOpts->PCHThroughHeader.empty() && in creatingPCHWithThroughHeader()
[all …]
H A DPPDirectives.cpp1970 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport()
3014 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective()
3018 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective()
3069 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective()
3073 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective()
3140 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective()
3143 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective()
3185 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifDirective()
3188 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifDirective()
H A DPPLexerChange.cpp512 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
H A DPPMacroExpansion.cpp1546 remapMacroPath(FN, PPOpts->MacroPrefixMap); in ExpandBuiltinMacro()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp153 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local
154 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation()
156 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DFileRemapper.cpp209 void FileRemapper::applyMappings(PreprocessorOptions &PPOpts) const { in applyMappings()
213 PPOpts.addRemappedFile(I->first->getName(), FE->getName()); in applyMappings()
216 PPOpts.addRemappedFile(I->first->getName(), mem); in applyMappings()
220 PPOpts.RetainRemappedFileBuffers = true; in applyMappings()
H A DARCMT.cpp178 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration() local
179 if (!PPOpts.ImplicitPCHInclude.empty()) { in createInvocationForMigration()
188 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration()
190 PPOpts.Includes.insert(PPOpts.Includes.begin(), OriginalFile); in createInvocationForMigration()
191 PPOpts.ImplicitPCHInclude.clear(); in createInvocationForMigration()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DCompilerInstance.cpp227 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local
228 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH()
231 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH()
446 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local
463 if (PPOpts.DetailedRecord) in createPreprocessor()
468 PP->getFileManager(), PPOpts); in createPreprocessor()
471 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor()
1053 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); local
1058 PPOpts.resetNonModularOptions();
1063 PPOpts.Macros.erase(
[all …]
H A DASTUnit.cpp264 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local
265 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit()
521 PreprocessorOptions &PPOpts; member in __anonc715c21c0211::ASTInfoCollector
530 HeaderSearchOptions &HSOpts, PreprocessorOptions &PPOpts, in ASTInfoCollector() argument
534 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector()
557 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument
559 this->PPOpts = PPOpts; in ReadPreprocessorOptions()
793 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile()
801 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile()
822 *AST->PP, AST->Ctx.get(), *AST->HSOpts, *AST->PPOpts, *AST->LangOpts, in LoadFromASTFile()
[all …]
H A DFrontendActions.cpp619 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
623 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions()
625 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions()
628 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions()
633 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
H A DFrontendAction.cpp726 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local
727 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile()
743 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
H A DInitPreprocessor.cpp637 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument
1089 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DIndexing.cpp350 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in CreateASTConsumer() local
352 if (!PPOpts.ImplicitPCHInclude.empty()) { in CreateASTConsumer()
353 auto File = CI.getFileManager().getFile(PPOpts.ImplicitPCHInclude); in CreateASTConsumer()
590 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local
591 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl()
604 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl()
608 PPOpts.DetailedRecord = false; in clang_indexSourceFile_Impl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Frontend/
H A DASTUnit.h120 std::shared_ptr<PreprocessorOptions> PPOpts; variable
472 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts()
473 return *PPOpts; in getPreprocessorOpts()
H A DUtils.h65 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ARCMigrate/
H A DFileRemapper.h58 void applyMappings(PreprocessorOptions &PPOpts) const;
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenAction.cpp135 const PreprocessorOptions &PPOpts, in BackendConsumer() argument
147 Gen(CreateLLVMCodeGen(Diags, InFile, HeaderSearchOpts, PPOpts, in BackendConsumer()
160 const PreprocessorOptions &PPOpts, in BackendConsumer() argument
171 Gen(CreateLLVMCodeGen(Diags, "", HeaderSearchOpts, PPOpts, in BackendConsumer()
H A DCGDebugInfo.cpp2605 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local
2608 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/
H A DASTReader.h184 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
259 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
290 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain,
311 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain,
1719 const PreprocessorOptions &PPOpts,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTReader.cpp208 const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument
210 return First->ReadPreprocessorOptions(PPOpts, Complain, in ReadPreprocessorOptions()
212 Second->ReadPreprocessorOptions(PPOpts, Complain, SuggestedPredefines); in ReadPreprocessorOptions()
589 collectMacroDefinitions(const PreprocessorOptions &PPOpts, in collectMacroDefinitions() argument
592 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in collectMacroDefinitions()
593 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions()
594 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions()
631 static bool checkPreprocessorOptions(const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument
640 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions()
696 if (PPOpts.UsePredefines != ExistingPPOpts.UsePredefines && Validate) { in checkPreprocessorOptions()
[all …]
H A DASTWriter.cpp1335 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local
1338 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock()
1339 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in WriteControlBlock()
1340 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock()
1341 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock()
1345 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock()
1346 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I) in WriteControlBlock()
1347 AddString(PPOpts.Includes[I], Record); in WriteControlBlock()
1350 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock()
1351 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I) in WriteControlBlock()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DPreprocessor.h134 std::shared_ptr<PreprocessorOptions> PPOpts; variable
886 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
917 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()