Lines Matching refs:PP
148 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument
156 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
162 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
165 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro()
168 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
177 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
187 Preprocessor &PP, in isConfigurationValue() argument
203 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
218 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue()
229 isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue()
234 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
243 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal, in isConfigurationValue()
245 isConfigurationValue(B->getRHS(), PP, SilenceableCondVal, in isConfigurationValue()
255 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
271 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP) { in isConfigurationValue() argument
273 return isConfigurationValue(ED->getInitExpr(), PP); in isConfigurationValue()
294 Preprocessor &PP) { in shouldTreatSuccessorsAsReachable() argument
300 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
305 return isConfigurationValue(Cond, PP); in shouldTreatSuccessorsAsReachable()
310 Preprocessor *PP, in scanFromBlock() argument
349 assert(PP); in scanFromBlock()
351 shouldTreatSuccessorsAsReachable(item, *PP); in scanFromBlock()
375 Preprocessor &PP, in scanMaybeReachableFromBlock() argument
377 return scanFromBlock(Start, Reachable, &PP, true); in scanMaybeReachableFromBlock()
389 Preprocessor &PP; member in __anon26aee0cf0111::DeadCodeScan
398 DeadCodeScan(llvm::BitVector &reachable, Preprocessor &PP, ASTContext &C) in DeadCodeScan() argument
401 PP(PP), C(C) {} in DeadCodeScan()
512 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
518 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
537 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
654 isConfigurationValue(TermCond, PP, &SilenceableCondVal); in reportDeadCode()
677 void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, in FindUnreachableCode() argument
688 scanMaybeReachableFromBlock(&cfg->getEntry(), PP, reachable); in FindUnreachableCode()
696 numReachable += scanMaybeReachableFromBlock(B, PP, reachable); in FindUnreachableCode()
708 DeadCodeScan DS(reachable, PP, AC.getASTContext()); in FindUnreachableCode()