Home
last modified time | relevance | path

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

/external/clang/lib/Frontend/Rewrite/
DFrontendActions.cpp141 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation() local
142 PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(), in BeginInvocation()
144 PPOpts.RemappedFilesKeepOriginalName = false; in BeginInvocation()
/external/clang/lib/ARCMigrate/
DARCMT.cpp172 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in createInvocationForMigration() local
173 if (!PPOpts.ImplicitPCHInclude.empty()) { in createInvocationForMigration()
182 ASTReader::getOriginalSourceFile(PPOpts.ImplicitPCHInclude, in createInvocationForMigration()
185 PPOpts.Includes.insert(PPOpts.Includes.begin(), OriginalFile); in createInvocationForMigration()
186 PPOpts.ImplicitPCHInclude.clear(); in createInvocationForMigration()
414 PreprocessorOptions PPOpts; in getFileRemappings() local
415 remapper.applyMappings(PPOpts); in getFileRemappings()
416 remap = PPOpts.RemappedFiles; in getFileRemappings()
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()
/external/clang/lib/Frontend/
DCompilerInstance.cpp290 const PreprocessorOptions &PPOpts = getPreprocessorOpts(); in createPreprocessor() local
294 if (!PPOpts.TokenCache.empty()) in createPreprocessor()
295 PTHMgr = PTHManager::Create(PPOpts.TokenCache, getDiagnostics()); in createPreprocessor()
316 if (PPOpts.DetailedRecord) in createPreprocessor()
321 PP->getFileManager(), PPOpts); in createPreprocessor()
324 InitializePreprocessor(*PP, PPOpts, getFrontendOpts()); in createPreprocessor()
872 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in compileModuleImpl() local
877 PPOpts.resetNonModularOptions(); in compileModuleImpl()
882 PPOpts.Macros.erase( in compileModuleImpl()
883 std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(), in compileModuleImpl()
[all …]
DFrontendActions.cpp519 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
523 DUMP_BOOLEAN(PPOpts.UsePredefines, in ReadPreprocessorOptions()
525 DUMP_BOOLEAN(PPOpts.DetailedRecord, in ReadPreprocessorOptions()
528 if (!PPOpts.Macros.empty()) { in ReadPreprocessorOptions()
533 I = PPOpts.Macros.begin(), IEnd = PPOpts.Macros.end(); in ReadPreprocessorOptions()
DFrontendAction.cpp263 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginSourceFile() local
264 StringRef PCHInclude = PPOpts.ImplicitPCHInclude; in BeginSourceFile()
279 PPOpts.ImplicitPCHInclude = Dir->path(); in BeginSourceFile()
DASTUnit.cpp249 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in ~ASTUnit() local
250 for (const auto &RB : PPOpts.RemappedFileBuffers) in ~ASTUnit()
683 PreprocessorOptions *PPOpts = new PreprocessorOptions(); in LoadFromASTFile() local
686 PPOpts->addRemappedFile(RemappedFile.first, RemappedFile.second); in LoadFromASTFile()
694 new Preprocessor(PPOpts, AST->getDiagnostics(), AST->ASTFileLangOpts, in LoadFromASTFile()
1938 PreprocessorOptions &PPOpts = CI->getPreprocessorOpts(); in LoadFromCommandLine() local
1939 PPOpts.RemappedFilesKeepOriginalName = RemappedFilesKeepOriginalName; in LoadFromCommandLine()
1940 PPOpts.AllowPCHWithCompilerErrors = AllowPCHWithCompilerErrors; in LoadFromCommandLine()
2001 PreprocessorOptions &PPOpts = Invocation->getPreprocessorOpts(); in Reparse() local
2002 for (const auto &RB : PPOpts.RemappedFileBuffers) in Reparse()
/external/clang/tools/libclang/
DIndexing.cpp419 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in CreateASTConsumer() local
421 if (!PPOpts.ImplicitPCHInclude.empty()) { in CreateASTConsumer()
423 CI.getFileManager().getFile(PPOpts.ImplicitPCHInclude)); in CreateASTConsumer()
628 PreprocessorOptions &PPOpts = CInvok->getPreprocessorOpts(); in clang_indexSourceFile_Impl() local
629 PPOpts.AllowPCHWithCompilerErrors = true; in clang_indexSourceFile_Impl()
640 PPOpts.DetailedRecord = true; in clang_indexSourceFile_Impl()
644 PPOpts.DetailedRecord = false; in clang_indexSourceFile_Impl()
/external/clang/tools/arcmt-test/
Darcmt-test.cpp139 PreprocessorOptions PPOpts; in printResult() local
140 remapper.applyMappings(PPOpts); in printResult()
142 for (const auto &RB : PPOpts.RemappedFileBuffers) in printResult()
/external/clang/include/clang/ARCMigrate/
DFileRemapper.h57 void applyMappings(PreprocessorOptions &PPOpts) const;
/external/clang/unittests/Lex/
DPPCallbacksTest.cpp169 IntrusiveRefCntPtr<PreprocessorOptions> PPOpts = new PreprocessorOptions(); in InclusionDirectiveFilenameRange() local
170 Preprocessor PP(PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, in InclusionDirectiveFilenameRange()
/external/clang/lib/Serialization/
DASTReader.cpp121 const PreprocessorOptions &PPOpts, bool Complain, in ReadPreprocessorOptions() argument
123 return First->ReadPreprocessorOptions(PPOpts, Complain, in ReadPreprocessorOptions()
125 Second->ReadPreprocessorOptions(PPOpts, Complain, SuggestedPredefines); in ReadPreprocessorOptions()
436 collectMacroDefinitions(const PreprocessorOptions &PPOpts, in collectMacroDefinitions() argument
439 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in collectMacroDefinitions()
440 StringRef Macro = PPOpts.Macros[I].first; in collectMacroDefinitions()
441 bool IsUndef = PPOpts.Macros[I].second; in collectMacroDefinitions()
475 static bool checkPreprocessorOptions(const PreprocessorOptions &PPOpts, in checkPreprocessorOptions() argument
483 collectMacroDefinitions(PPOpts, ASTFileMacros); in checkPreprocessorOptions()
539 if (PPOpts.UsePredefines != ExistingPPOpts.UsePredefines) { in checkPreprocessorOptions()
[all …]
DASTWriter.cpp1363 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts(); in WriteControlBlock() local
1366 Record.push_back(PPOpts.Macros.size()); in WriteControlBlock()
1367 for (unsigned I = 0, N = PPOpts.Macros.size(); I != N; ++I) { in WriteControlBlock()
1368 AddString(PPOpts.Macros[I].first, Record); in WriteControlBlock()
1369 Record.push_back(PPOpts.Macros[I].second); in WriteControlBlock()
1373 Record.push_back(PPOpts.Includes.size()); in WriteControlBlock()
1374 for (unsigned I = 0, N = PPOpts.Includes.size(); I != N; ++I) in WriteControlBlock()
1375 AddString(PPOpts.Includes[I], Record); in WriteControlBlock()
1378 Record.push_back(PPOpts.MacroIncludes.size()); in WriteControlBlock()
1379 for (unsigned I = 0, N = PPOpts.MacroIncludes.size(); I != N; ++I) in WriteControlBlock()
[all …]
/external/clang/lib/Lex/
DPreprocessor.cpp58 Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, in Preprocessor() argument
64 : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(nullptr), in Preprocessor()
/external/clang/include/clang/Frontend/
DUtils.h65 const PreprocessorOptions &PPOpts,
/external/clang/include/clang/Lex/
DPreprocessor.h96 IntrusiveRefCntPtr<PreprocessorOptions> PPOpts; variable
469 Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts,
498 PreprocessorOptions &getPreprocessorOpts() const { return *PPOpts; } in getPreprocessorOpts()
/external/clang/include/clang/Serialization/
DASTReader.h169 virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, in ReadPreprocessorOptions() argument
236 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts,
264 bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain,
1507 const PreprocessorOptions &PPOpts,