Lines Matching refs:DeclToCheck
403 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() local
404 if (FD->hasBody(DeclToCheck)) in ShouldRemoveFromUnused()
405 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
409 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()
410 if (DeclToCheck != FD) in ShouldRemoveFromUnused()
411 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
426 const VarDecl *DeclToCheck = VD->getDefinition(); in ShouldRemoveFromUnused() local
427 if (DeclToCheck) in ShouldRemoveFromUnused()
428 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
432 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()
433 if (DeclToCheck != VD) in ShouldRemoveFromUnused()
434 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()