Home
last modified time | relevance | path

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

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