Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DPreprocessor.cpp85 : PPOpts(std::move(PPOpts)), Diags(&diags), LangOpts(opts), in Preprocessor()
155 if (!this->PPOpts->PCHThroughHeader.empty() && in Preprocessor()
156 !this->PPOpts->ImplicitPCHInclude.empty()) in Preprocessor()
159 if (this->PPOpts->GeneratePreamble) in Preprocessor()
562 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile()
567 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile()
573 << PPOpts->PCHThroughHeader; in EnterMainSourceFile()
609 return TUKind == TU_Prefix && PPOpts->PCHWithHdrStop; in creatingPCHWithPragmaHdrStop()
613 return TUKind != TU_Prefix && PPOpts->PCHWithHdrStop; in usingPCHWithPragmaHdrStop()
641 << PPOpts->PCHThroughHeader << 1; in SkipTokensWhileUsingPCH()
[all …]
H A DPPDirectives.cpp1864 if (PPOpts->SingleFileParseMode) in HandleIncludeDirective()
2765 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective()
2815 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective()
2882 if (PPOpts->SingleFileParseMode && !CI.FoundNonSkip) { in HandleElseDirective()
2927 if (PPOpts->SingleFileParseMode && !CI.FoundNonSkip) { in HandleElifDirective()
H A DPPLexerChange.cpp507 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DARCMT.cpp178 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration() local
179 if (!PPOpts.ImplicitPCHInclude.empty()) { in createInvocationForMigration()
188 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration()
190 PPOpts.Includes.insert(PPOpts.Includes.begin(), OriginalFile); in createInvocationForMigration()
191 PPOpts.ImplicitPCHInclude.clear(); in createInvocationForMigration()
419 PreprocessorOptions PPOpts; in getFileRemappings() local
420 remapper.applyMappings(PPOpts); in getFileRemappings()
421 remap = PPOpts.RemappedFiles; in getFileRemappings()
H A DFileRemapper.cpp192 void FileRemapper::applyMappings(PreprocessorOptions &PPOpts) const { in applyMappings()
196 PPOpts.addRemappedFile(I->first->getName(), FE->getName()); in applyMappings()
199 PPOpts.addRemappedFile(I->first->getName(), mem); in applyMappings()
203 PPOpts.RetainRemappedFileBuffers = true; in applyMappings()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp149 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local
150 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation()
152 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DCompilerInstance.cpp166 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH()
169 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH()
373 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local
390 if (PPOpts.DetailedRecord) in createPreprocessor()
395 PP->getFileManager(), PPOpts); in createPreprocessor()
1043 PPOpts.resetNonModularOptions();
1048 PPOpts.Macros.erase(
1049 std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(),
1055 PPOpts.Macros.end());
1072 PPOpts.FailedModules = ImportingPPOpts.FailedModules;
[all …]
H A DASTUnit.cpp262 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local
263 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit()
520 PreprocessorOptions &PPOpts; member in __anon0cd8e0a00211::ASTInfoCollector
533 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector()
558 this->PPOpts = PPOpts; in ReadPreprocessorOptions()
770 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile()
781 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile()
1735 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local
1737 PPOpts.AllowPCHWithCompilerErrors = AllowPCHWithCompilerErrors; in LoadFromCommandLine()
1738 PPOpts.SingleFileParseMode = SingleFileParse; in LoadFromCommandLine()
[all …]
H A DFrontendActions.cpp590 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
594 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions()
596 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions()
599 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions()
604 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
H A DFrontendAction.cpp710 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local
711 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile()
727 PPOpts.ImplicitPCHInclude = Dir->path(); in BeginSourceFile()
H A DCompilerInvocation.cpp2052 PreprocessorOptions &PPOpts, in setLangDefaults() argument
2155 PPOpts.Includes.push_back("opencl-c.h"); in setLangDefaults()
2278 PreprocessorOptions &PPOpts, in ParseLangArgs() argument
2359 CompilerInvocation::setLangDefaults(Opts, IK, T, PPOpts, LangStd); in ParseLangArgs()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Frontend/
H A DASTUnit.h118 std::shared_ptr<PreprocessorOptions> PPOpts; variable
467 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts()
468 return *PPOpts; in getPreprocessorOpts()
H A DCompilerInvocation.h179 const llvm::Triple &T, PreprocessorOptions &PPOpts,
H A DUtils.h70 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ARCMigrate/
H A DFileRemapper.h57 void applyMappings(PreprocessorOptions &PPOpts) const;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReader.cpp585 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions()
586 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions()
721 if (std::find(PPOpts.Includes.begin(), PPOpts.Includes.end(), File) in checkPreprocessorOptions()
722 != PPOpts.Includes.end()) in checkPreprocessorOptions()
732 if (std::find(PPOpts.MacroIncludes.begin(), PPOpts.MacroIncludes.end(), in checkPreprocessorOptions()
734 != PPOpts.MacroIncludes.end()) in checkPreprocessorOptions()
761 return checkPreprocessorOptions(PPOpts, in ReadPreprocessorOptions()
5368 PreprocessorOptions PPOpts; in ParsePreprocessorOptions() local
5388 PPOpts.UsePredefines = Record[Idx++]; in ParsePreprocessorOptions()
5389 PPOpts.DetailedRecord = Record[Idx++]; in ParsePreprocessorOptions()
[all …]
H A DASTWriter.cpp1675 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local
1678 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock()
1680 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock()
1681 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock()
1685 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock()
1687 AddString(PPOpts.Includes[I], Record); in WriteControlBlock()
1690 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock()
1692 AddString(PPOpts.MacroIncludes[I], Record); in WriteControlBlock()
1694 Record.push_back(PPOpts.UsePredefines); in WriteControlBlock()
1696 Record.push_back(PPOpts.DetailedRecord); in WriteControlBlock()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTReader.h197 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
272 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
303 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain,
324 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain,
1695 const PreprocessorOptions &PPOpts,
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/
H A DPreprocessor.h129 std::shared_ptr<PreprocessorOptions> PPOpts; variable
778 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
810 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenAction.cpp113 const PreprocessorOptions &PPOpts, in BackendConsumer() argument
126 Gen(CreateLLVMCodeGen(Diags, InFile, HeaderSearchOpts, PPOpts, in BackendConsumer()
H A DCGDebugInfo.cpp2267 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local
2270 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()