/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 142 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local 143 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation() 145 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
|
/external/clang/lib/ARCMigrate/ |
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() 419 PreprocessorOptions PPOpts; in getFileRemappings() local 420 remapper.applyMappings(PPOpts); in getFileRemappings() 421 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/clang/lib/Frontend/ |
D | CompilerInstance.cpp | 297 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local 301 if (!PPOpts.TokenCache.empty()) in createPreprocessor() 302 PTHMgr = PTHManager::Create(PPOpts.TokenCache, getDiagnostics()); in createPreprocessor() 323 if (PPOpts.DetailedRecord) in createPreprocessor() 328 PP->getFileManager(), PPOpts); in createPreprocessor() 331 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor() 898 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in compileModuleImpl() local 903 PPOpts.resetNonModularOptions(); in compileModuleImpl() 908 PPOpts.Macros.erase( in compileModuleImpl() 909 std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(), in compileModuleImpl() [all …]
|
D | FrontendActions.cpp | 550 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 554 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions() 556 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions() 559 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions() 564 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
|
D | FrontendAction.cpp | 264 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local 265 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile() 279 PPOpts.ImplicitPCHInclude = Dir->path(); in BeginSourceFile()
|
D | ASTUnit.cpp | 250 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local 251 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit() 687 PreprocessorOptions *PPOpts = new PreprocessorOptions(); in LoadFromASTFile() local 690 PPOpts->addRemappedFile(RemappedFile.first, RemappedFile.second); in LoadFromASTFile() 698 new Preprocessor(PPOpts, AST->getDiagnostics(), AST->ASTFileLangOpts, in LoadFromASTFile() 1964 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local 1965 PPOpts.RemappedFilesKeepOriginalName = RemappedFilesKeepOriginalName; in LoadFromCommandLine() 1966 PPOpts.AllowPCHWithCompilerErrors = AllowPCHWithCompilerErrors; in LoadFromCommandLine() 2032 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in Reparse() local 2033 for (const auto &RB : PPOpts.RemappedFileBuffers) in Reparse()
|
/external/clang/tools/libclang/ |
D | Indexing.cpp | 419 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in CreateASTConsumer() local 421 if (!PPOpts.ImplicitPCHInclude.empty()) { in CreateASTConsumer() 423 CI.getFileManager().getFile(PPOpts.ImplicitPCHInclude)); in CreateASTConsumer() 606 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local 607 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl() 620 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl() 624 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/clang/include/clang/ARCMigrate/ |
D | FileRemapper.h | 57 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/clang/lib/Serialization/ |
D | ASTReader.cpp | 123 const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument 125 return First->ReadPreprocessorOptions(PPOpts, Complain, in ReadPreprocessorOptions() 127 Second->ReadPreprocessorOptions(PPOpts, Complain, SuggestedPredefines); in ReadPreprocessorOptions() 454 collectMacroDefinitions(const PreprocessorOptions &PPOpts, in collectMacroDefinitions() argument 457 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in collectMacroDefinitions() 458 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions() 459 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions() 493 static bool checkPreprocessorOptions(const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument 501 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions() 557 if (PPOpts.UsePredefines != ExistingPPOpts.UsePredefines) { in checkPreprocessorOptions() [all …]
|
D | ASTWriter.cpp | 1407 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local 1410 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock() 1411 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in WriteControlBlock() 1412 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock() 1413 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock() 1417 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock() 1418 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I) in WriteControlBlock() 1419 AddString(PPOpts.Includes[I], Record); in WriteControlBlock() 1422 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock() 1423 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I) in WriteControlBlock() [all …]
|
/external/clang/lib/Lex/ |
D | Preprocessor.cpp | 59 Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, in Preprocessor() argument 65 : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(nullptr), in Preprocessor()
|
/external/clang/include/clang/Frontend/ |
D | Utils.h | 65 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
|
/external/clang/include/clang/Serialization/ |
D | ASTReader.h | 173 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument 245 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, 276 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, 1506 const PreprocessorOptions &PPOpts,
|
/external/clang/include/clang/Lex/ |
D | Preprocessor.h | 97 IntrusiveRefCntPtr<PreprocessorOptions> PPOpts; variable 646 Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, 678 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
|
/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 70 const PreprocessorOptions &PPOpts, const CodeGenOptions &CodeGenOpts, in BackendConsumer() argument 79 Gen(CreateLLVMCodeGen(Diags, InFile, HeaderSearchOpts, PPOpts, in BackendConsumer()
|
D | CGDebugInfo.cpp | 1721 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef() local 1724 for (auto &M : PPOpts.Macros) { in getOrCreateModuleRef()
|