Home
last modified time | relevance | path

Searched refs:DiagDecl (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp877 const FunctionDecl *DiagDecl = F->getDecl(); in CheckCallable() local
880 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 …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp5986 const FunctionDecl *DiagDecl = Definition ? Definition : Declaration; in CheckConstexprFunction() local
5989 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()