/openbsd/gnu/llvm/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 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() 576 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile() 580 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile() 587 << PPOpts->PCHThroughHeader; in EnterMainSourceFile() 623 return TUKind == TU_Prefix && PPOpts->PCHWithHdrStop; in creatingPCHWithPragmaHdrStop() 627 return TUKind != TU_Prefix && PPOpts->PCHWithHdrStop; in usingPCHWithPragmaHdrStop() 672 << PPOpts->PCHThroughHeader << 1; in SkipTokensWhileUsingPCH() [all …]
|
H A D | PPDirectives.cpp | 2197 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport() 3267 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective() 3271 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective() 3322 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective() 3326 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective() 3393 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective() 3396 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective() 3473 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifFamilyDirective() 3476 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifFamilyDirective()
|
H A D | PPLexerChange.cpp | 551 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/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 | 176 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration() local 177 if (!PPOpts.ImplicitPCHInclude.empty()) { in createInvocationForMigration() 186 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration() 188 PPOpts.Includes.insert(PPOpts.Includes.begin(), OriginalFile); in createInvocationForMigration() 189 PPOpts.ImplicitPCHInclude.clear(); in createInvocationForMigration()
|
/openbsd/gnu/llvm/clang/lib/Frontend/ |
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 __anonbd518b1e0211::ASTInfoCollector 535 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector() 587 this->PPOpts = PPOpts; in ReadPreprocessorOptions() 820 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile() 828 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile() 1773 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local 1775 PPOpts.AllowPCHWithCompilerErrors = AllowPCHWithCompilerErrors; in LoadFromCommandLine() 1776 PPOpts.SingleFileParseMode = SingleFileParse; in LoadFromCommandLine() [all …]
|
H A D | CompilerInstance.cpp | 233 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local 234 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH() 237 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH() 455 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 472 if (PPOpts.DetailedRecord) in createPreprocessor() 477 PP->getFileManager(), PPOpts); in createPreprocessor() 480 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 1169 llvm::erase_if(PPOpts.Macros, 1191 PPOpts.FailedModules = ImportingPPOpts.FailedModules; 1207 PPOpts.RetainRemappedFileBuffers = true; [all …]
|
H A D | FrontendActions.cpp | 660 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 664 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 666 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 669 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions() 674 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
H A D | FrontendAction.cpp | 770 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 771 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 788 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
|
H A D | InitPreprocessor.cpp | 742 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument 1202 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
|
/openbsd/gnu/llvm/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() 593 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local 594 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl() 607 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl() 611 PPOpts.DetailedRecord = false; in clang_indexSourceFile_Impl()
|
/openbsd/gnu/llvm/clang/include/clang/ARCMigrate/ |
H A D | FileRemapper.h | 58 void applyMappings(PreprocessorOptions &PPOpts) const;
|
/openbsd/gnu/llvm/clang/include/clang/Frontend/ |
H A D | ASTUnit.h | 119 std::shared_ptr<PreprocessorOptions> PPOpts; variable 471 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts() 472 return *PPOpts; in getPreprocessorOpts()
|
H A D | Utils.h | 49 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
|
/openbsd/gnu/llvm/clang/lib/CodeGen/ |
H A D | CodeGenAction.cpp | 152 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 165 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer() 178 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 190 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
|
H A D | CGDebugInfo.cpp | 2723 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local 2726 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
|
/openbsd/gnu/llvm/clang/include/clang/Serialization/ |
H A D | ASTReader.h | 201 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 276 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 307 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, 328 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, 1770 const PreprocessorOptions &PPOpts,
|
/openbsd/gnu/llvm/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 211 const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument 213 return First->ReadPreprocessorOptions(PPOpts, Complain, in ReadPreprocessorOptions() 597 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions() 598 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions() 645 const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument 652 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions() 763 if (llvm::is_contained(PPOpts.Includes, File)) in checkPreprocessorOptions() 5970 PreprocessorOptions PPOpts; in ParsePreprocessorOptions() local 5990 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions() 5991 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions() [all …]
|
H A D | ASTWriter.cpp | 1455 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local 1458 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock() 1460 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock() 1461 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock() 1465 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock() 1467 AddString(PPOpts.Includes[I], Record); in WriteControlBlock() 1470 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock() 1472 AddString(PPOpts.MacroIncludes[I], Record); in WriteControlBlock() 1474 Record.push_back(PPOpts.UsePredefines); in WriteControlBlock() 1476 Record.push_back(PPOpts.DetailedRecord); in WriteControlBlock() [all …]
|
/openbsd/gnu/llvm/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 133 std::shared_ptr<PreprocessorOptions> PPOpts; variable 1160 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, 1191 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|