Lines Matching refs:PP
150 Preprocessor &PP, in isExpandedFromConfigurationMacro() argument
158 SourceManager &SM = PP.getSourceManager(); in isExpandedFromConfigurationMacro()
164 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
167 } else if (!PP.getLangOpts().CPlusPlus) { in isExpandedFromConfigurationMacro()
170 StringRef MacroName = PP.getImmediateMacroName(TopL); in isExpandedFromConfigurationMacro()
179 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP);
189 Preprocessor &PP, in isConfigurationValue() argument
205 return isConfigurationValue(PE->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
220 return isConfigurationValue(cast<DeclRefExpr>(S)->getDecl(), PP); in isConfigurationValue()
231 isExpandedFromConfigurationMacro(E, PP, IgnoreYES_NO); in isConfigurationValue()
236 return isConfigurationValue(cast<MemberExpr>(S)->getMemberDecl(), PP); in isConfigurationValue()
245 return isConfigurationValue(B->getLHS(), PP, SilenceableCondVal, in isConfigurationValue()
247 isConfigurationValue(B->getRHS(), PP, SilenceableCondVal, in isConfigurationValue()
257 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue()
273 static bool isConfigurationValue(const ValueDecl *D, Preprocessor &PP) { in isConfigurationValue() argument
275 return isConfigurationValue(ED->getInitExpr(), PP); in isConfigurationValue()
296 Preprocessor &PP) { in shouldTreatSuccessorsAsReachable() argument
302 return isConfigurationValue(Term, PP); in shouldTreatSuccessorsAsReachable()
313 return isConfigurationValue(Cond, PP); in shouldTreatSuccessorsAsReachable()
318 Preprocessor *PP, in scanFromBlock() argument
357 assert(PP); in scanFromBlock()
359 shouldTreatSuccessorsAsReachable(item, *PP); in scanFromBlock()
383 Preprocessor &PP, in scanMaybeReachableFromBlock() argument
385 return scanFromBlock(Start, Reachable, &PP, true); in scanMaybeReachableFromBlock()
397 Preprocessor &PP; member in __anoncf2f01950111::DeadCodeScan
406 DeadCodeScan(llvm::BitVector &reachable, Preprocessor &PP, ASTContext &C) in DeadCodeScan() argument
409 PP(PP), C(C) {} in DeadCodeScan()
520 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
526 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
545 count += scanMaybeReachableFromBlock(Block, PP, Reachable); in scanBackwards()
667 isConfigurationValue(TermCond, PP, &SilenceableCondVal); in reportDeadCode()
690 void FindUnreachableCode(AnalysisDeclContext &AC, Preprocessor &PP, in FindUnreachableCode() argument
701 scanMaybeReachableFromBlock(&cfg->getEntry(), PP, reachable); in FindUnreachableCode()
709 numReachable += scanMaybeReachableFromBlock(B, PP, reachable); in FindUnreachableCode()
721 DeadCodeScan DS(reachable, PP, AC.getASTContext()); in FindUnreachableCode()