Searched refs:DiagDecl (Results 1 – 2 of 2) sorted by relevance
593 const FunctionDecl *DiagDecl = F->getDecl(); in CheckCallable() local596 if (DiagDecl->isInvalidDecl()) in CheckCallable()601 const auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckCallable()605 DiagDecl = CD = Inherited; in CheckCallable()614 S.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckCallable()619 bool IsExtern = DiagDecl->getStorageClass() == SC_Extern; in CheckCallable()620 if (!DiagDecl->isDefined() && !IsExtern && DiagDecl->isConstexpr() && in CheckCallable()626 if (DiagDecl->isDefined() && DiagDecl->isConstexpr() && in CheckCallable()627 DiagDecl->hasBody()) in CheckCallable()631 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckCallable()[all …]
5711 const FunctionDecl *DiagDecl = Definition ? Definition : Declaration; in CheckConstexprFunction() local5715 auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckConstexprFunction()5719 DiagDecl = CD = Inherited; in CheckConstexprFunction()5730 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckConstexprFunction()5731 Info.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckConstexprFunction()