| /netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
| H A D | Preprocessor.cpp | 79 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 D | PPDirectives.cpp | 1970 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 D | PPLexerChange.cpp | 512 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
|
| H A D | PPMacroExpansion.cpp | 1546 remapMacroPath(FN, PPOpts->MacroPrefixMap); in ExpandBuiltinMacro()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/Rewrite/ |
| H A D | FrontendActions.cpp | 153 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 D | FileRemapper.cpp | 209 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 D | ARCMT.cpp | 178 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 D | CompilerInstance.cpp | 227 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 D | ASTUnit.cpp | 264 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 D | FrontendActions.cpp | 619 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 D | FrontendAction.cpp | 726 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 D | InitPreprocessor.cpp | 637 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument 1089 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
|
| /netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/ |
| H A D | Indexing.cpp | 350 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 D | ASTUnit.h | 120 std::shared_ptr<PreprocessorOptions> PPOpts; variable 472 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts() 473 return *PPOpts; in getPreprocessorOpts()
|
| H A D | Utils.h | 65 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/ARCMigrate/ |
| H A D | FileRemapper.h | 58 void applyMappings(PreprocessorOptions &PPOpts) const;
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CodeGenAction.cpp | 135 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 D | CGDebugInfo.cpp | 2605 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 D | ASTReader.h | 184 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 D | ASTReader.cpp | 208 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 D | ASTWriter.cpp | 1335 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 D | Preprocessor.h | 134 std::shared_ptr<PreprocessorOptions> PPOpts; variable 886 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, 917 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|