Lines Matching refs:DeclToCheck
639 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() local
640 if (FD->hasBody(DeclToCheck)) in ShouldRemoveFromUnused()
641 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
645 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()
646 if (DeclToCheck != FD) in ShouldRemoveFromUnused()
647 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
669 const VarDecl *DeclToCheck = VD->getDefinition(); in ShouldRemoveFromUnused() local
670 if (DeclToCheck) in ShouldRemoveFromUnused()
671 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
675 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()
676 if (DeclToCheck != VD) in ShouldRemoveFromUnused()
677 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()