Searched refs:DeclToCheck (Results 1 – 2 of 2) sorted by relevance
435 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() local436 if (FD->hasBody(DeclToCheck)) in ShouldRemoveFromUnused()437 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()441 DeclToCheck = FD->getMostRecentDecl(); in ShouldRemoveFromUnused()442 if (DeclToCheck != FD) in ShouldRemoveFromUnused()443 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()458 const VarDecl *DeclToCheck = VD->getDefinition(); in ShouldRemoveFromUnused() local459 if (DeclToCheck) in ShouldRemoveFromUnused()460 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()464 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()[all …]
639 const FunctionDecl *DeclToCheck; in ShouldRemoveFromUnused() local640 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() local670 if (DeclToCheck) in ShouldRemoveFromUnused()671 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()675 DeclToCheck = VD->getMostRecentDecl(); in ShouldRemoveFromUnused()[all …]