Searched refs:DiagDecl (Results 1 – 2 of 2) sorted by relevance
425 const FunctionDecl *DiagDecl = F->getDecl(); in CheckCallable() local429 const auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckCallable()433 DiagDecl = CD = Inherited; in CheckCallable()442 S.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckCallable()447 if (!DiagDecl->isDefined() && S.checkingPotentialConstantExpression()) in CheckCallable()451 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckCallable()452 S.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckCallable()
5650 const FunctionDecl *DiagDecl = Definition ? Definition : Declaration; in CheckConstexprFunction() local5654 auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckConstexprFunction()5658 DiagDecl = CD = Inherited; in CheckConstexprFunction()5669 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckConstexprFunction()5670 Info.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckConstexprFunction()