| /llvm-project-15.0.7/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() 580 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile() 584 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile() 591 << PPOpts->PCHThroughHeader; in EnterMainSourceFile() 627 return TUKind == TU_Prefix && PPOpts->PCHWithHdrStop; in creatingPCHWithPragmaHdrStop() 631 return TUKind != TU_Prefix && PPOpts->PCHWithHdrStop; in usingPCHWithPragmaHdrStop() 676 << PPOpts->PCHThroughHeader << 1; in SkipTokensWhileUsingPCH() [all …]
|
| H A D | PPDirectives.cpp | 2208 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport() 3278 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective() 3282 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective() 3333 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective() 3337 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective() 3404 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective() 3407 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective() 3484 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifFamilyDirective() 3487 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifFamilyDirective()
|
| H A D | PPLexerChange.cpp | 550 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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 __anon6243dda10211::ASTInfoCollector 534 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector() 559 this->PPOpts = PPOpts; in ReadPreprocessorOptions() 792 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile() 800 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile() 1746 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local 1748 PPOpts.AllowPCHWithCompilerErrors = AllowPCHWithCompilerErrors; in LoadFromCommandLine() 1749 PPOpts.SingleFileParseMode = SingleFileParse; in LoadFromCommandLine() [all …]
|
| H A D | CompilerInstance.cpp | 229 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local 230 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH() 233 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH() 448 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 465 if (PPOpts.DetailedRecord) in createPreprocessor() 470 PP->getFileManager(), PPOpts); in createPreprocessor() 1154 PPOpts.resetNonModularOptions(); 1159 llvm::erase_if(PPOpts.Macros, 1181 PPOpts.FailedModules = ImportingPPOpts.FailedModules; 1197 PPOpts.RetainRemappedFileBuffers = true; [all …]
|
| H A D | FrontendActions.cpp | 728 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 732 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 734 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 737 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions() 742 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
| H A D | FrontendAction.cpp | 759 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 760 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 776 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
|
| H A D | InitPreprocessor.cpp | 730 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument 1189 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | PCHPreambleTest.cpp | 94 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in ParseAST() local 95 PPOpts.RemappedFilesKeepOriginalName = true; in ParseAST()
|
| /llvm-project-15.0.7/clang/include/clang/ARCMigrate/ |
| H A D | FileRemapper.h | 58 void applyMappings(PreprocessorOptions &PPOpts) const;
|
| /llvm-project-15.0.7/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 | 49 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Preamble.cpp | 725 auto &PPOpts = CI.getPreprocessorOpts(); in apply() local 731 PPOpts.addRemappedFile(PatchFileName, PatchBuffer.release()); in apply() 734 PPOpts.Includes.push_back(PatchFileName); in apply()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenAction.cpp | 151 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 164 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer() 177 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 189 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
|
| H A D | CGDebugInfo.cpp | 2713 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local 2716 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
|
| /llvm-project-15.0.7/clang/include/clang/Serialization/ |
| H A D | ASTReader.h | 183 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 258 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 289 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, 310 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, 1740 const PreprocessorOptions &PPOpts,
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 210 const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument 212 return First->ReadPreprocessorOptions(PPOpts, Complain, in ReadPreprocessorOptions() 596 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions() 597 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions() 644 const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument 651 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions() 762 if (llvm::is_contained(PPOpts.Includes, File)) in checkPreprocessorOptions() 5928 PreprocessorOptions PPOpts; in ParsePreprocessorOptions() local 5948 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions() 5949 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions() [all …]
|
| H A D | ASTWriter.cpp | 1426 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local 1429 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock() 1431 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock() 1432 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock() 1436 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock() 1438 AddString(PPOpts.Includes[I], Record); in WriteControlBlock() 1441 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock() 1443 AddString(PPOpts.MacroIncludes[I], Record); in WriteControlBlock() 1445 Record.push_back(PPOpts.UsePredefines); in WriteControlBlock() 1447 Record.push_back(PPOpts.DetailedRecord); in WriteControlBlock() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | Preprocessor.h | 134 std::shared_ptr<PreprocessorOptions> PPOpts; variable 1033 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, 1064 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|