/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 83 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, in Preprocessor() argument 89 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts), in Preprocessor() 162 if (!this->PPOpts->PCHThroughHeader.empty() && in Preprocessor() 163 !this->PPOpts->ImplicitPCHInclude.empty()) in Preprocessor() 166 if (this->PPOpts->GeneratePreamble) in Preprocessor() 583 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile() 587 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile() 594 << PPOpts->PCHThroughHeader; in EnterMainSourceFile() 620 return TUKind == TU_Prefix && !PPOpts->PCHThroughHeader.empty() && in creatingPCHWithThroughHeader() 625 return TUKind != TU_Prefix && !PPOpts->PCHThroughHeader.empty() && in usingPCHWithThroughHeader() [all …]
|
H A D | PPDirectives.cpp | 1135 for (const auto &Entry : PPOpts->EmbedEntries) { in LookupEmbedFile() 2322 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport() 3401 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective() 3405 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective() 3456 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective() 3460 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective() 3527 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective() 3530 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective() 3607 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifFamilyDirective() 3610 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifFamilyDirective()
|
H A D | PPLexerChange.cpp | 565 << 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() 253 PreprocessorOptions &getPreprocessorOpts() { return *PPOpts; } in getPreprocessorOpts() 277 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()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
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/Frontend/ |
H A D | ASTUnit.cpp | 263 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local 264 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit() 521 PreprocessorOptions &PPOpts; member in __anone37b80710211::ASTInfoCollector 531 HeaderSearchOptions &HSOpts, PreprocessorOptions &PPOpts, in ASTInfoCollector() argument 535 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector() 599 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 602 this->PPOpts = PPOpts; in ReadPreprocessorOptions() 836 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile() 843 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile() 866 *AST->PP, AST->Ctx.get(), *AST->HSOpts, *AST->PPOpts, *AST->LangOpts, in LoadFromASTFile() [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() 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() 1185 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); local 1194 llvm::erase_if(PPOpts.Macros, 1222 PPOpts.RetainRemappedFileBuffers = true; [all …]
|
H A D | FrontendActions.cpp | 719 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 723 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 725 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 733 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
H A D | FrontendAction.cpp | 786 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 787 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 804 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
|
H A D | InitPreprocessor.cpp | 854 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument 1398 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros() 1503 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() 238 return ensureOwned(PPOpts); in getMutPreprocessorOpts()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | DependencyScanningWorker.cpp | 248 static void canonicalizeDefines(PreprocessorOptions &PPOpts) { in canonicalizeDefines() argument 251 SimpleNames.reserve(PPOpts.Macros.size()); in canonicalizeDefines() 253 for (const auto &M : PPOpts.Macros) { in canonicalizeDefines() 270 decltype(PPOpts.Macros) NewMacros; in canonicalizeDefines() 275 NewMacros.push_back(std::move(PPOpts.Macros[OriginalIndex])); in canonicalizeDefines() 277 std::swap(PPOpts.Macros, NewMacros); in canonicalizeDefines()
|
/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, const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument 126 PPOpts, CodeGenOpts, C, CoverageInfo)), in BackendConsumer() 140 const PreprocessorOptions &PPOpts, const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument 149 Gen(CreateLLVMCodeGen(Diags, "", std::move(VFS), HeaderSearchOpts, PPOpts, in BackendConsumer()
|
H A D | CGDebugInfo.cpp | 2994 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local 2997 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
|
/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, 1810 const PreprocessorOptions &PPOpts,
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 216 const PreprocessorOptions &PPOpts, bool ReadMacros, bool Complain, in ReadPreprocessorOptions() argument 218 return First->ReadPreprocessorOptions(PPOpts, ReadMacros, Complain, in ReadPreprocessorOptions() 220 Second->ReadPreprocessorOptions(PPOpts, ReadMacros, Complain, in ReadPreprocessorOptions() 614 collectMacroDefinitions(const PreprocessorOptions &PPOpts, in collectMacroDefinitions() argument 617 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in collectMacroDefinitions() 618 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions() 619 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions() 666 const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument 674 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions() 760 if (PPOpts.UsePredefines != ExistingPPOpts.UsePredefines && in checkPreprocessorOptions() [all …]
|
H A D | ASTWriter.cpp | 1633 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local 1643 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock() 1644 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in WriteControlBlock() 1645 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock() 1646 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock() 1651 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock() 1652 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I) in WriteControlBlock() 1653 AddString(PPOpts.Includes[I], Record); in WriteControlBlock() 1656 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock() 1657 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I) in WriteControlBlock() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 142 std::shared_ptr<PreprocessorOptions> PPOpts; variable 1178 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, 1210 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|