• Home
  • Raw
  • Download

Lines Matching refs:PP

96 void CompilerInstance::setPreprocessor(Preprocessor *Value) { PP = Value; }  in setPreprocessor()
303 PP = new Preprocessor(&getPreprocessorOpts(), getDiagnostics(), getLangOpts(), in createPreprocessor()
306 PP->Initialize(getTarget()); in createPreprocessor()
312 PTHMgr->setPreprocessor(&*PP); in createPreprocessor()
313 PP->setPTHManager(PTHMgr); in createPreprocessor()
317 PP->createPreprocessingRecord(); in createPreprocessor()
320 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor()
321 PP->getFileManager(), PPOpts); in createPreprocessor()
324 InitializePreprocessor(*PP, PPOpts, getFrontendOpts()); in createPreprocessor()
327 ApplyHeaderSearchOptions(PP->getHeaderSearchInfo(), getHeaderSearchOpts(), in createPreprocessor()
328 PP->getLangOpts(), PP->getTargetInfo().getTriple()); in createPreprocessor()
330 PP->setPreprocessedOutput(getPreprocessorOutputOpts().ShowCPP); in createPreprocessor()
332 if (PP->getLangOpts().Modules) in createPreprocessor()
333 PP->getHeaderSearchInfo().setModuleCachePath(getSpecificModuleCachePath()); in createPreprocessor()
339 DependencyFileGenerator::CreateAndAttachToPreprocessor(*PP, DepOpts)); in createPreprocessor()
341 AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile, in createPreprocessor()
345 Listener->attachToPreprocessor(*PP); in createPreprocessor()
355 AttachHeaderIncludeGen(*PP); in createPreprocessor()
360 AttachHeaderIncludeGen(*PP, /*ShowAllHeaders=*/true, OutputPath, in createPreprocessor()
365 AttachHeaderIncludeGen(*PP, /*ShowAllHeaders=*/false, /*OutputPath=*/"", in createPreprocessor()
384 Preprocessor &PP = getPreprocessor(); in createASTContext() local
385 Context = new ASTContext(getLangOpts(), PP.getSourceManager(), in createASTContext()
386 PP.getIdentifierTable(), PP.getSelectorTable(), in createASTContext()
387 PP.getBuiltinInfo()); in createASTContext()
406 bool AllowPCHWithCompilerErrors, Preprocessor &PP, ASTContext &Context, in createPCHExternalASTSource() argument
409 HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts(); in createPCHExternalASTSource()
412 new ASTReader(PP, Context, Sysroot.empty() ? "" : Sysroot.c_str(), in createPCHExternalASTSource()
432 PP.setPredefines(Reader->getSuggestedPredefines()); in createPCHExternalASTSource()
454 static bool EnableCodeCompletion(Preprocessor &PP, in EnableCodeCompletion() argument
460 const FileEntry *Entry = PP.getFileManager().getFile(Filename); in EnableCodeCompletion()
462 PP.getDiagnostics().Report(diag::err_fe_invalid_code_complete_file) in EnableCodeCompletion()
468 PP.SetCodeCompletionPoint(Entry, Line, Column); in EnableCodeCompletion()
500 CompilerInstance::createCodeCompletionConsumer(Preprocessor &PP, in createCodeCompletionConsumer() argument
506 if (EnableCodeCompletion(PP, Filename, Line, Column)) in createCodeCompletionConsumer()
1078 static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro, in checkConfigMacro() argument
1080 IdentifierInfo *Id = PP.getIdentifierInfo(ConfigMacro); in checkConfigMacro()
1081 SourceManager &SourceMgr = PP.getSourceManager(); in checkConfigMacro()
1092 PP.getMacroDirectiveHistory(Id)->getDefinition(); in checkConfigMacro()
1100 if (FID != PP.getPredefinesFileID()) in checkConfigMacro()
1105 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1108 PP.Diag(LatestDef.getUndefLocation(), diag::note_module_def_undef_here) in checkConfigMacro()
1120 PP.getMacroDirectiveHistory(Id)->getDefinition(); in checkConfigMacro()
1129 if (FID != PP.getPredefinesFileID()) in checkConfigMacro()
1141 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1143 PP.Diag(LatestDef.getLocation(), diag::note_module_def_undef_here) in checkConfigMacro()
1151 LatestDef.getMacroInfo()->isIdenticalTo(*PredefinedDef.getMacroInfo(),PP, in checkConfigMacro()
1156 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1158 PP.Diag(LatestDef.getLocation(), diag::note_module_def_undef_here) in checkConfigMacro()
1403 Module = PP->getHeaderSearchInfo().lookupModule(ModuleName); in loadModule()
1407 Module = PP->getHeaderSearchInfo().lookupModule(ModuleName); in loadModule()
1427 : PP->getHeaderSearchInfo().getModuleFileName(Module); in loadModule()