Lines Matching refs:PP

151                                              Preprocessor &PP,  in isExpandedFromConfigurationMacro()  argument
159 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
165 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
168 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro()
171 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
180 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
190 Preprocessor &PP, in isConfigurationValue() argument
206 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
221 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue()
232 isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue()
237 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
246 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal, in isConfigurationValue()
248 isConfigurationValue(B->getRHS(), PP, SilenceableCondVal, in isConfigurationValue()
258 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
274 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP) { in isConfigurationValue() argument
276 return isConfigurationValue(ED->getInitExpr(), PP); in isConfigurationValue()
297 Preprocessor &PP) { in shouldTreatSuccessorsAsReachable() argument
303 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
314 return isConfigurationValue(Cond, PP); in shouldTreatSuccessorsAsReachable()
319 Preprocessor *PP, in scanFromBlock() argument
358 assert(PP); in scanFromBlock()
360 shouldTreatSuccessorsAsReachable(item, *PP); in scanFromBlock()
384 Preprocessor &PP, in scanMaybeReachableFromBlock() argument
386 return scanFromBlock(Start, Reachable, &PP, true); in scanMaybeReachableFromBlock()
398 Preprocessor &PP; member in __anon5ae95f9f0111::DeadCodeScan
407 DeadCodeScan(llvm::BitVector &reachable, Preprocessor &PP, ASTContext &C) in DeadCodeScan() argument
410 PP(PP), C(C) {} in DeadCodeScan()
563 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
569 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
588 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
710 isConfigurationValue(TermCond, PP, &SilenceableCondVal); in reportDeadCode()
733 void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, in FindUnreachableCode() argument
744 scanMaybeReachableFromBlock(&cfg->getEntry(), PP, reachable); in FindUnreachableCode()
752 numReachable += scanMaybeReachableFromBlock(B, PP, reachable); in FindUnreachableCode()
764 DeadCodeScan DS(reachable, PP, AC.getASTContext()); in FindUnreachableCode()