Lines Matching refs:PP
127 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument
139 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
141 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
150 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
160 Preprocessor &PP, in isConfigurationValue() argument
173 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
188 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue()
198 return WrappedInParens || isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue()
203 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
212 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal, in isConfigurationValue()
214 isConfigurationValue(B->getRHS(), PP, SilenceableCondVal, in isConfigurationValue()
222 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
230 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP) { in isConfigurationValue() argument
232 return isConfigurationValue(ED->getInitExpr(), PP); in isConfigurationValue()
253 Preprocessor &PP) { in shouldTreatSuccessorsAsReachable() argument
259 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
264 return isConfigurationValue(Cond, PP); in shouldTreatSuccessorsAsReachable()
269 Preprocessor *PP, in scanFromBlock() argument
308 assert(PP); in scanFromBlock()
310 shouldTreatSuccessorsAsReachable(item, *PP); in scanFromBlock()
334 Preprocessor &PP, in scanMaybeReachableFromBlock() argument
336 return scanFromBlock(Start, Reachable, &PP, true); in scanMaybeReachableFromBlock()
348 Preprocessor &PP; member in __anonb5f9662a0111::DeadCodeScan
356 DeadCodeScan(llvm::BitVector &reachable, Preprocessor &PP) in DeadCodeScan() argument
359 PP(PP) {} in DeadCodeScan()
471 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
477 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
497 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
614 isConfigurationValue(TermCond, PP, &SilenceableCondVal); in reportDeadCode()
637 void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, in FindUnreachableCode() argument
648 scanMaybeReachableFromBlock(&cfg->getEntry(), PP, reachable); in FindUnreachableCode()
657 numReachable += scanMaybeReachableFromBlock(*I, PP, reachable); in FindUnreachableCode()
671 DeadCodeScan DS(reachable, PP); in FindUnreachableCode()