Searched refs:DiagDecl (Results 1 – 2 of 2) sorted by relevance
877 const FunctionDecl *DiagDecl = F->getDecl(); in CheckCallable() local880 if (DiagDecl->isInvalidDecl()) in CheckCallable()885 const auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckCallable()889 DiagDecl = CD = Inherited; in CheckCallable()904 S.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckCallable()909 bool IsExtern = DiagDecl->getStorageClass() == SC_Extern; in CheckCallable()911 if (!IsDefined && !IsExtern && DiagDecl->isConstexpr() && in CheckCallable()917 if (DiagDecl->isDefined() && DiagDecl->isConstexpr() && in CheckCallable()918 DiagDecl->hasBody()) in CheckCallable()923 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckCallable()[all …]
5986 const FunctionDecl *DiagDecl = Definition ? Definition : Declaration; in CheckConstexprFunction() local5989 if (CallLoc.isMacroID() && DiagDecl->getIdentifier()) { in CheckConstexprFunction()5992 StringRef Name = DiagDecl->getName(); in CheckConstexprFunction()6004 auto *CD = dyn_cast<CXXConstructorDecl>(DiagDecl); in CheckConstexprFunction()6008 DiagDecl = CD = Inherited; in CheckConstexprFunction()6019 << DiagDecl->isConstexpr() << (bool)CD << DiagDecl; in CheckConstexprFunction()6020 Info.Note(DiagDecl->getLocation(), diag::note_declared_at); in CheckConstexprFunction()