/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 85 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts), in Preprocessor() 158 if (!this->PPOpts->PCHThroughHeader.empty() && in Preprocessor() 159 !this->PPOpts->ImplicitPCHInclude.empty()) in Preprocessor() 162 if (this->PPOpts->GeneratePreamble) in Preprocessor() 579 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile() 583 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile() 590 << PPOpts->PCHThroughHeader; in EnterMainSourceFile() 626 return TUKind == TU_Prefix && PPOpts->PCHWithHdrStop; in creatingPCHWithPragmaHdrStop() 630 return TUKind != TU_Prefix && PPOpts->PCHWithHdrStop; in usingPCHWithPragmaHdrStop() 659 << PPOpts->PCHThroughHeader << 1; in SkipTokensWhileUsingPCH() [all …]
|
H A D | PPDirectives.cpp | 2244 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport() 3323 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective() 3327 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective() 3378 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective() 3382 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective() 3449 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective() 3452 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective() 3529 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifFamilyDirective() 3532 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifFamilyDirective()
|
H A D | PPLexerChange.cpp | 566 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | CompilerInvocation.h | 89 std::shared_ptr<PreprocessorOptions> PPOpts; variable 135 const PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts() 248 PreprocessorOptions &getPreprocessorOpts() { return *PPOpts; } in getPreprocessorOpts() 272 return PPOpts; in getPreprocessorOptsPtr()
|
H A D | ASTUnit.h | 120 std::shared_ptr<PreprocessorOptions> PPOpts; variable 475 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts() 476 return *PPOpts; in getPreprocessorOpts()
|
H A D | Utils.h | 50 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | BackendConsumer.h | 75 const PreprocessorOptions &PPOpts, 89 const PreprocessorOptions &PPOpts,
|
H A D | CodeGenAction.cpp | 115 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 130 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer() 143 const PreprocessorOptions &PPOpts, in BackendConsumer() argument 157 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer()
|
H A D | CGDebugInfo.cpp | 2868 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local 2871 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | ASTUnit.cpp | 262 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local 263 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit() 520 PreprocessorOptions &PPOpts; member in __anona731de390211::ASTInfoCollector 534 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector() 588 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 591 this->PPOpts = PPOpts; in ReadPreprocessorOptions() 824 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile() 831 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile() 1789 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local 1792 PPOpts.SingleFileParseMode = SingleFileParse; in LoadFromCommandLine() [all …]
|
H A D | CompilerInstance.cpp | 231 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local 232 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH() 235 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH() 447 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 464 if (PPOpts.DetailedRecord) in createPreprocessor() 469 PP->getFileManager(), PPOpts); in createPreprocessor() 472 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 1183 llvm::erase_if(PPOpts.Macros, 1205 PPOpts.FailedModules = ImportingPPOpts.FailedModules; 1221 PPOpts.RetainRemappedFileBuffers = true; [all …]
|
H A D | FrontendActions.cpp | 689 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 693 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 695 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 703 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
H A D | FrontendAction.cpp | 777 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 778 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 795 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
|
H A D | InitPreprocessor.cpp | 772 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument 1251 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros() 1356 if (PPOpts.DefineTargetOSMacros) { in InitializePredefinedMacros()
|
H A D | CompilerInvocation.cpp | 144 PPOpts(std::make_shared<PreprocessorOptions>()), in CompilerInvocationBase() 161 PPOpts = make_shared_copy(X.getPreprocessorOpts()); in deep_copy_assign() 181 PPOpts = X.PPOpts; in shallow_copy_assign() 227 return ensureOwned(PPOpts); in getMutPreprocessorOpts()
|
/freebsd/contrib/llvm-project/clang/include/clang/ARCMigrate/ |
H A D | FileRemapper.h | 58 void applyMappings(PreprocessorOptions &PPOpts) const;
|
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | ASTReader.h | 202 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 277 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 308 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 327 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 1797 const PreprocessorOptions &PPOpts,
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 613 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions() 614 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions() 661 const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument 669 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions() 790 if (llvm::is_contained(PPOpts.Includes, File)) in checkPreprocessorOptions() 800 if (llvm::is_contained(PPOpts.MacroIncludes, File)) in checkPreprocessorOptions() 842 !PPOpts.AllowPCHWithDifferentModulesCachePath) { in checkHeaderSearchOptions() 6169 PreprocessorOptions PPOpts; in ParsePreprocessorOptions() local 6192 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions() 6193 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions() [all …]
|
H A D | ASTWriter.cpp | 1520 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local 1530 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock() 1532 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock() 1533 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock() 1538 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock() 1540 AddString(PPOpts.Includes[I], Record); in WriteControlBlock() 1543 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock() 1545 AddString(PPOpts.MacroIncludes[I], Record); in WriteControlBlock() 1547 Record.push_back(PPOpts.UsePredefines); in WriteControlBlock() 1549 Record.push_back(PPOpts.DetailedRecord); in WriteControlBlock() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 133 std::shared_ptr<PreprocessorOptions> PPOpts; variable 1158 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, 1190 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|