Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessor.cpp85 : 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 DPPDirectives.cpp2208 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 DPPLexerChange.cpp550 << PPOpts->PCHThroughHeader << 0; in HandleEndOfFile()
/llvm-project-15.0.7/clang/lib/Frontend/Rewrite/
H A DFrontendActions.cpp153 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 DFileRemapper.cpp209 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 DARCMT.cpp176 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 DASTUnit.cpp264 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 DCompilerInstance.cpp229 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 DFrontendActions.cpp728 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 DFrontendAction.cpp759 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 DInitPreprocessor.cpp730 const PreprocessorOptions &PPOpts, in InitializePredefinedMacros() argument
1189 if (PPOpts.SetUpStaticAnalyzer) in InitializePredefinedMacros()
/llvm-project-15.0.7/clang/tools/libclang/
H A DIndexing.cpp350 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 DPCHPreambleTest.cpp94 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in ParseAST() local
95 PPOpts.RemappedFilesKeepOriginalName = true; in ParseAST()
/llvm-project-15.0.7/clang/include/clang/ARCMigrate/
H A DFileRemapper.h58 void applyMappings(PreprocessorOptions &PPOpts) const;
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DASTUnit.h120 std::shared_ptr<PreprocessorOptions> PPOpts; variable
472 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts()
473 return *PPOpts; in getPreprocessorOpts()
H A DUtils.h49 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DPreamble.cpp725 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 DCodeGenAction.cpp151 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 DCGDebugInfo.cpp2713 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 DASTReader.h183 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 DASTReader.cpp210 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 DASTWriter.cpp1426 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 DPreprocessor.h134 std::shared_ptr<PreprocessorOptions> PPOpts; variable
1033 Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts,
1064 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()