Lines Matching refs:Dcl
757 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
785 << isa<CXXConstructorDecl>(Dcl);
798 << isa<CXXConstructorDecl>(Dcl);
805 << isa<CXXConstructorDecl>(Dcl);
810 << isa<CXXConstructorDecl>(Dcl);
820 /// \param Dcl The constexpr constructor being checked.
827 const FunctionDecl *Dcl,
840 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init);
851 CheckConstexprCtorInitializer(SemaRef, Dcl, *I, Inits, Diagnosed);
859 bool Sema::CheckConstexprFunctionBody(const FunctionDecl *Dcl, Stmt *Body) {
871 << isa<CXXConstructorDecl>(Dcl);
892 if (!CheckConstexprDeclStmt(*this, Dcl, cast<DeclStmt>(*BodyIt)))
898 if (isa<CXXConstructorDecl>(Dcl))
909 << isa<CXXConstructorDecl>(Dcl);
914 = dyn_cast<CXXConstructorDecl>(Dcl)) {
924 Diag(Dcl->getLocation(), diag::err_constexpr_union_ctor_no_init);
960 CheckConstexprCtorInitializer(*this, Dcl, *I, Inits, Diagnosed);
967 Diag(Dcl->getLocation(), diag::err_constexpr_body_no_return);
989 if (!Expr::isPotentialConstantExpr(Dcl, Diags)) {
990 Diag(Dcl->getLocation(), diag::err_constexpr_function_never_constant_expr)
991 << isa<CXXConstructorDecl>(Dcl);
5514 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
5515 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
10380 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) {
10381 AdjustDeclIfTemplate(Dcl);
10383 FunctionDecl *Fn = dyn_cast<FunctionDecl>(Dcl);
10401 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Dcl);
10431 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
10432 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Dcl);
10658 /// an initializer for the out-of-line declaration 'Dcl'. The scope
10661 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
10704 Decl *Dcl = ActOnDeclarator(S, D);
10705 if (!Dcl)
10708 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
10709 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
10714 return Dcl;