Home
last modified time | relevance | path

Searched refs:PPOpts (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp81 Preprocessor::Preprocessor(const PreprocessorOptions &PPOpts, in Preprocessor() argument
87 : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), in Preprocessor()
160 if (!this->PPOpts.PCHThroughHeader.empty() && in Preprocessor()
161 !this->PPOpts.ImplicitPCHInclude.empty()) in Preprocessor()
164 if (this->PPOpts.GeneratePreamble) in Preprocessor()
599 if (!PPOpts.PCHThroughHeader.empty()) { in EnterMainSourceFile()
603 SourceLocation(), PPOpts.PCHThroughHeader, in EnterMainSourceFile()
610 << PPOpts.PCHThroughHeader; in EnterMainSourceFile()
636 return TUKind == TU_Prefix && !PPOpts.PCHThroughHeader.empty() && in creatingPCHWithThroughHeader()
641 return TUKind != TU_Prefix && !PPOpts.PCHThroughHeader.empty() && in usingPCHWithThroughHeader()
[all …]
H A DPPDirectives.cpp1161 for (const auto &Entry : PPOpts.EmbedEntries) { in LookupEmbedFile()
2079 if (FilenameTok.is(tok::identifier) && PPOpts.SingleFileParseMode) { in HandleIncludeDirective()
2356 if (PPOpts.SingleFileParseMode) in HandleHeaderIncludeOrImport()
3418 bool RetainExcludedCB = PPOpts.RetainExcludedConditionalBlocks && in HandleIfdefDirective()
3422 if (PPOpts.SingleFileParseMode && !MI) { in HandleIfdefDirective()
3473 bool RetainExcludedCB = PPOpts.RetainExcludedConditionalBlocks && in HandleIfDirective()
3477 if (PPOpts.SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective()
3544 bool RetainExcludedCB = PPOpts.RetainExcludedConditionalBlocks && in HandleElseDirective()
3547 if ((PPOpts.SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective()
3624 bool RetainExcludedCB = PPOpts.RetainExcludedConditionalBlocks && in HandleElifFamilyDirective()
[all …]
H A DPPLexerChange.cpp558 << PPOpts.PCHThroughHeader << 0; in HandleEndOfFile()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp152 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local
153 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation()
155 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h89 std::shared_ptr<PreprocessorOptions> PPOpts; variable
135 const PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
253 PreprocessorOptions &getPreprocessorOpts() { return *PPOpts; } in getPreprocessorOpts()
H A DASTUnit.h125 std::shared_ptr<PreprocessorOptions> PPOpts; variable
487 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts()
488 return *PPOpts; in getPreprocessorOpts()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp259 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local
260 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit()
517 PreprocessorOptions &PPOpts; member in __anone37b80710211::ASTInfoCollector
527 HeaderSearchOptions &HSOpts, PreprocessorOptions &PPOpts, in ASTInfoCollector() argument
531 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector()
597 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
601 this->PPOpts = PPOpts; in ReadPreprocessorOptions()
838 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile()
845 *AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile()
867 *AST->PP, AST->Ctx.get(), *AST->HSOpts, *AST->PPOpts, *AST->LangOpts, in LoadFromASTFile()
[all …]
H A DCompilerInstance.cpp230 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local
231 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH()
234 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH()
443 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local
460 if (PPOpts.DetailedRecord) in createPreprocessor()
465 PP->getFileManager(), PPOpts); in createPreprocessor()
468 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor()
1160 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in cloneForModuleCompileImpl() local
1169 llvm::erase_if(PPOpts.Macros, in cloneForModuleCompileImpl()
1197 PPOpts.RetainRemappedFileBuffers = true; in cloneForModuleCompileImpl()
[all …]
H A DFrontendActions.cpp745 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
750 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions()
752 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions()
760 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
H A DFrontendAction.cpp934 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local
935 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile()
952 PPOpts.ImplicitPCHInclude = std::string(Dir->path()); in BeginSourceFile()
H A DInitPreprocessor.cpp864 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument
1419 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
1530 if (PPOpts.DefineTargetOSMacros) { in InitializePredefinedMacros()
H A DCompilerInvocation.cpp130 PPOpts(std::make_shared<PreprocessorOptions>()), in CompilerInvocationBase()
147 PPOpts = make_shared_copy(X.getPreprocessorOpts()); in deep_copy_assign()
167 PPOpts = X.PPOpts; in shallow_copy_assign()
215 return ensureOwned(PPOpts); in getMutPreprocessorOpts()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningWorker.cpp319 static void canonicalizeDefines(PreprocessorOptions &PPOpts) { in canonicalizeDefines() argument
322 SimpleNames.reserve(PPOpts.Macros.size()); in canonicalizeDefines()
324 for (const auto &M : PPOpts.Macros) { in canonicalizeDefines()
341 decltype(PPOpts.Macros) NewMacros; in canonicalizeDefines()
346 NewMacros.push_back(std::move(PPOpts.Macros[OriginalIndex])); in canonicalizeDefines()
348 std::swap(PPOpts.Macros, NewMacros); in canonicalizeDefines()
H A DModuleDepCollector.cpp525 const auto &PPOpts = CI.getPreprocessorOpts(); in isSafeToIgnoreCWD() local
526 IF_ANY_RELATIVE_RETURN_FALSE(PPOpts.MacroIncludes); in isSafeToIgnoreCWD()
527 IF_ANY_RELATIVE_RETURN_FALSE(PPOpts.Includes); in isSafeToIgnoreCWD()
528 IF_RELATIVE_RETURN_FALSE(PPOpts.ImplicitPCHInclude); in isSafeToIgnoreCWD()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h205 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
296 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
330 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
351 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
1998 const PreprocessorOptions &PPOpts,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp210 const PreprocessorOptions &PPOpts, StringRef ModuleFilename, in ReadPreprocessorOptions() argument
212 return First->ReadPreprocessorOptions(PPOpts, ModuleFilename, ReadMacros, in ReadPreprocessorOptions()
214 Second->ReadPreprocessorOptions(PPOpts, ModuleFilename, ReadMacros, in ReadPreprocessorOptions()
632 collectMacroDefinitions(const PreprocessorOptions &PPOpts, in collectMacroDefinitions() argument
635 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in collectMacroDefinitions()
636 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions()
637 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions()
686 const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument
694 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions()
783 if (PPOpts.UsePredefines != ExistingPPOpts.UsePredefines && in checkPreprocessorOptions()
[all …]
H A DASTWriter.cpp1696 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local
1706 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock()
1707 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in WriteControlBlock()
1708 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock()
1709 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock()
1714 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock()
1715 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I) in WriteControlBlock()
1716 AddString(PPOpts.Includes[I], Record); in WriteControlBlock()
1719 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock()
1720 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I) in WriteControlBlock()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessor.h156 const PreprocessorOptions &PPOpts; variable
1191 Preprocessor(const PreprocessorOptions &PPOpts, DiagnosticsEngine &diags,
1221 const PreprocessorOptions &getPreprocessorOpts() const { return PPOpts; } in getPreprocessorOpts()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp3219 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local
3222 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()