/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 143 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local 144 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation() 146 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
|
/external/llvm-project/clang/lib/Lex/ |
D | Preprocessor.cpp | 79 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, in Preprocessor() argument 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() 166 this->PPOpts->ExcludedConditionalDirectiveSkipMappings; in Preprocessor() 570 if (!PPOpts->PCHThroughHeader.empty()) { in EnterMainSourceFile() 575 SourceLocation(), PPOpts->PCHThroughHeader, in EnterMainSourceFile() 582 << PPOpts->PCHThroughHeader; in EnterMainSourceFile() 608 return TUKind == TU_Prefix && !PPOpts->PCHThroughHeader.empty() && in creatingPCHWithThroughHeader() [all …]
|
D | PPDirectives.cpp | 1946 if (PPOpts->SingleFileParseMode) in HandleHeaderIncludeOrImport() 2973 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfdefDirective() 2977 if (PPOpts->SingleFileParseMode && !MI) { in HandleIfdefDirective() 3024 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleIfDirective() 3028 if (PPOpts->SingleFileParseMode && DER.IncludedUndefinedIds) { in HandleIfDirective() 3095 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElseDirective() 3098 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElseDirective() 3140 bool RetainExcludedCB = PPOpts->RetainExcludedConditionalBlocks && in HandleElifDirective() 3143 if ((PPOpts->SingleFileParseMode && !CI.FoundNonSkip) || RetainExcludedCB) { in HandleElifDirective()
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 177 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration() local 178 if (!PPOpts.ImplicitPCHInclude.empty()) { in createInvocationForMigration() 187 PPOpts.ImplicitPCHInclude, FileMgr, PCHContainerRdr, *Diags); in createInvocationForMigration() 189 PPOpts.Includes.insert(PPOpts.Includes.begin(), OriginalFile); in createInvocationForMigration() 190 PPOpts.ImplicitPCHInclude.clear(); in createInvocationForMigration() 420 PreprocessorOptions PPOpts; in getFileRemappings() local 421 remapper.applyMappings(PPOpts); in getFileRemappings() 422 remap = PPOpts.RemappedFiles; in getFileRemappings()
|
D | FileRemapper.cpp | 192 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()
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
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()
|
/external/clang/lib/Frontend/ |
D | CompilerInstance.cpp | 299 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 303 if (!PPOpts.TokenCache.empty()) in createPreprocessor() 304 PTHMgr = PTHManager::Create(PPOpts.TokenCache, getDiagnostics()); in createPreprocessor() 325 if (PPOpts.DetailedRecord) in createPreprocessor() 330 PP->getFileManager(), PPOpts); in createPreprocessor() 333 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 934 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in compileModuleImpl() local 939 PPOpts.resetNonModularOptions(); in compileModuleImpl() 944 PPOpts.Macros.erase( in compileModuleImpl() 945 std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(), in compileModuleImpl() [all …]
|
D | FrontendActions.cpp | 552 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 556 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 558 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 561 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions() 566 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
D | FrontendAction.cpp | 282 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 283 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 297 PPOpts.ImplicitPCHInclude = Dir->path(); in BeginSourceFile()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | FileRemapper.cpp | 208 void FileRemapper::applyMappings(PreprocessorOptions &PPOpts) const { in applyMappings() 212 PPOpts.addRemappedFile(I->first->getName(), FE->getName()); in applyMappings() 215 PPOpts.addRemappedFile(I->first->getName(), mem); in applyMappings() 219 PPOpts.RetainRemappedFileBuffers = true; in applyMappings()
|
D | ARCMT.cpp | 178 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()
|
/external/llvm-project/clang/lib/Frontend/ |
D | CompilerInstance.cpp | 171 const PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in collectIncludePCH() local 172 if (PPOpts.ImplicitPCHInclude.empty()) in collectIncludePCH() 175 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in collectIncludePCH() 390 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 407 if (PPOpts.DetailedRecord) in createPreprocessor() 412 PP->getFileManager(), PPOpts); in createPreprocessor() 415 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 1078 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); local 1083 PPOpts.resetNonModularOptions(); 1088 PPOpts.Macros.erase( [all …]
|
D | ASTUnit.cpp | 264 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local 265 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit() 521 PreprocessorOptions &PPOpts; member in __anon8e7ac3c80211::ASTInfoCollector 530 HeaderSearchOptions &HSOpts, PreprocessorOptions &PPOpts, in ASTInfoCollector() argument 534 : PP(PP), Context(Context), HSOpts(HSOpts), PPOpts(PPOpts), in ASTInfoCollector() 557 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument 559 this->PPOpts = PPOpts; in ReadPreprocessorOptions() 794 AST->PPOpts = std::make_shared<PreprocessorOptions>(); in LoadFromASTFile() 797 AST->PPOpts->addRemappedFile(RemappedFile.first, RemappedFile.second); in LoadFromASTFile() 805 AST->PPOpts, AST->getDiagnostics(), *AST->LangOpts, in LoadFromASTFile() [all …]
|
D | FrontendActions.cpp | 625 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 629 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 631 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 634 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions() 639 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
/external/clang/tools/libclang/ |
D | Indexing.cpp | 364 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in CreateASTConsumer() local 366 if (!PPOpts.ImplicitPCHInclude.empty()) { in CreateASTConsumer() 368 CI.getFileManager().getFile(PPOpts.ImplicitPCHInclude)); in CreateASTConsumer() 559 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local 560 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl() 573 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl() 577 PPOpts.DetailedRecord = false; in clang_indexSourceFile_Impl()
|
/external/llvm-project/clang/tools/libclang/ |
D | Indexing.cpp | 350 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in CreateASTConsumer() local 352 if (!PPOpts.ImplicitPCHInclude.empty()) { in CreateASTConsumer() 353 auto File = CI.getFileManager().getFile(PPOpts.ImplicitPCHInclude); in CreateASTConsumer() 590 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local 591 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl() 604 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl() 608 PPOpts.DetailedRecord = false; in clang_indexSourceFile_Impl()
|
/external/clang/tools/arcmt-test/ |
D | arcmt-test.cpp | 141 PreprocessorOptions PPOpts; in printResult() local 142 remapper.applyMappings(PPOpts); in printResult() 144 for (const auto &RB : PPOpts.RemappedFileBuffers) in printResult()
|
/external/llvm-project/clang/unittests/Frontend/ |
D | PCHPreambleTest.cpp | 90 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in ParseAST() local 91 PPOpts.RemappedFilesKeepOriginalName = true; in ParseAST()
|
/external/clang/include/clang/ARCMigrate/ |
D | FileRemapper.h | 57 void applyMappings(PreprocessorOptions &PPOpts) const;
|
/external/llvm-project/clang/include/clang/ARCMigrate/ |
D | FileRemapper.h | 58 void applyMappings(PreprocessorOptions &PPOpts) const;
|
/external/clang/unittests/Lex/ |
D | PPCallbacksTest.cpp | 170 IntrusiveRefCntPtr<PreprocessorOptions> PPOpts = new PreprocessorOptions(); in InclusionDirectiveFilenameRange() local 171 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange()
|
/external/llvm-project/clang/include/clang/Frontend/ |
D | ASTUnit.h | 120 std::shared_ptr<PreprocessorOptions> PPOpts; variable 472 assert(PPOpts && "ASTUnit does not have preprocessor options"); in getPreprocessorOpts() 473 return *PPOpts; in getPreprocessorOpts()
|
D | CompilerInvocation.h | 182 const llvm::Triple &T, PreprocessorOptions &PPOpts,
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Preamble.cpp | 507 auto &PPOpts = CI.getPreprocessorOpts(); in apply() local 513 PPOpts.addRemappedFile(PatchFileName, PatchBuffer.release()); in apply() 516 PPOpts.Includes.push_back(PatchFileName); in apply()
|
/external/clang/include/clang/Frontend/ |
D | CompilerInvocation.h | 161 const llvm::Triple &T, PreprocessorOptions &PPOpts,
|