Lines Matching refs:PP
173 PP = std::move(Value); in setPreprocessor()
456 PP = std::make_shared<Preprocessor>(Invocation->getPreprocessorOptsPtr(), in createPreprocessor()
462 PP->Initialize(getTarget(), getAuxTarget()); in createPreprocessor()
465 PP->createPreprocessingRecord(); in createPreprocessor()
468 InitializeFileRemapping(PP->getDiagnostics(), PP->getSourceManager(), in createPreprocessor()
469 PP->getFileManager(), PPOpts); in createPreprocessor()
472 InitializePreprocessor(*PP, PPOpts, getPCHContainerReader(), in createPreprocessor()
478 const llvm::Triple *HeaderSearchTriple = &PP->getTargetInfo().getTriple(); in createPreprocessor()
479 if (PP->getTargetInfo().getTriple().getOS() == llvm::Triple::CUDA && in createPreprocessor()
480 PP->getAuxTargetInfo()) in createPreprocessor()
481 HeaderSearchTriple = &PP->getAuxTargetInfo()->getTriple(); in createPreprocessor()
483 ApplyHeaderSearchOptions(PP->getHeaderSearchInfo(), getHeaderSearchOpts(), in createPreprocessor()
484 PP->getLangOpts(), *HeaderSearchTriple); in createPreprocessor()
486 PP->setPreprocessedOutput(getPreprocessorOutputOpts().ShowCPP); in createPreprocessor()
488 if (PP->getLangOpts().Modules && PP->getLangOpts().ImplicitModules) { in createPreprocessor()
490 PP->getHeaderSearchInfo().setModuleHash(ModuleHash); in createPreprocessor()
491 PP->getHeaderSearchInfo().setModuleCachePath( in createPreprocessor()
500 AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile, in createPreprocessor()
514 collectHeaderMaps(PP->getHeaderSearchInfo(), ModuleDepCollector); in createPreprocessor()
520 Listener->attachToPreprocessor(*PP); in createPreprocessor()
524 AttachHeaderIncludeGen(*PP, DepOpts); in createPreprocessor()
529 AttachHeaderIncludeGen(*PP, DepOpts, in createPreprocessor()
535 AttachHeaderIncludeGen(*PP, DepOpts, in createPreprocessor()
552 Preprocessor &PP = getPreprocessor(); in createASTContext() local
553 auto *Context = new ASTContext(getLangOpts(), PP.getSourceManager(), in createASTContext()
554 PP.getIdentifierTable(), PP.getSelectorTable(), in createASTContext()
555 PP.getBuiltinInfo(), PP.TUKind); in createASTContext()
567 Preprocessor &PP; member
570 ReadModuleNames(Preprocessor &PP) : PP(PP) {} in ReadModuleNames()
579 ModuleMap &MM = PP.getHeaderSearchInfo().getModuleMap(); in registerAll()
581 MM.cacheModuleLoad(*PP.getIdentifierInfo(LoadedModule), in registerAll()
588 if (Module *M = PP.getHeaderSearchInfo().getModuleMap().findModule( in markAllUnavailable()
628 bool AllowPCHWithCompilerErrors, Preprocessor &PP, in createPCHExternalASTSource() argument
635 HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts(); in createPCHExternalASTSource()
638 PP, ModuleCache, &Context, PCHContainerRdr, Extensions, in createPCHExternalASTSource()
655 auto Listener = std::make_unique<ReadModuleNames>(PP); in createPCHExternalASTSource()
668 PP.setPredefines(Reader->getSuggestedPredefines()); in createPCHExternalASTSource()
692 static bool EnableCodeCompletion(Preprocessor &PP, in EnableCodeCompletion() argument
698 auto Entry = PP.getFileManager().getOptionalFileRef(Filename); in EnableCodeCompletion()
700 PP.getDiagnostics().Report(diag::err_fe_invalid_code_complete_file) in EnableCodeCompletion()
706 PP.SetCodeCompletionPoint(*Entry, Line, Column); in EnableCodeCompletion()
733 CompilerInstance::createCodeCompletionConsumer(Preprocessor &PP, in createCodeCompletionConsumer() argument
739 if (EnableCodeCompletion(PP, Filename, Line, Column)) in createCodeCompletionConsumer()
1531 static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro, in checkConfigMacro() argument
1533 IdentifierInfo *Id = PP.getIdentifierInfo(ConfigMacro); in checkConfigMacro()
1534 SourceManager &SourceMgr = PP.getSourceManager(); in checkConfigMacro()
1540 auto *LatestLocalMD = PP.getLocalMacroDirectiveHistory(Id); in checkConfigMacro()
1547 if (FID.isInvalid() || FID != PP.getPredefinesFileID()) in checkConfigMacro()
1554 auto *CurrentDefinition = PP.getMacroInfo(Id); in checkConfigMacro()
1560 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1565 PP.Diag(LatestDef.getUndefLocation(), diag::note_module_def_undef_here) in checkConfigMacro()
1571 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1573 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1576 } else if (!CurrentDefinition->isIdenticalTo(*CmdLineDefinition, PP, in checkConfigMacro()
1579 PP.Diag(ImportLoc, diag::warn_module_config_macro_undef) in checkConfigMacro()
1581 PP.Diag(CurrentDefinition->getDefinitionLoc(), in checkConfigMacro()
1742 auto Listener = std::make_unique<ReadModuleNames>(*PP); in loadModuleFile()
1821 HeaderSearch &HS = PP->getHeaderSearchInfo(); in findOrCompileModuleAndReadAST()
2004 Module = PP->getHeaderSearchInfo().lookupModule( in loadModule()
2041 auto &II = PP->getIdentifierTable().get( in loadModule()
2042 PrivateModule, PP->getIdentifierInfo(Module->Name)->getTokenID()); in loadModule()
2047 if (PP->getHeaderSearchInfo().lookupModule(PrivateModule, ImportLoc, true, in loadModule()
2050 PP->getHeaderSearchInfo()) != MS_ModuleNotFound) in loadModule()
2054 PP->markClangModuleAsAffecting(Module); in loadModule()