Lines Matching refs:Dcl
776 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprDeclStmt() argument
804 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
817 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
824 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
829 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
846 const FunctionDecl *Dcl, in CheckConstexprCtorInitializer() argument
859 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init); in CheckConstexprCtorInitializer()
870 CheckConstexprCtorInitializer(SemaRef, Dcl, *I, Inits, Diagnosed); in CheckConstexprCtorInitializer()
878 bool Sema::CheckConstexprFunctionBody(const FunctionDecl *Dcl, Stmt *Body) { in CheckConstexprFunctionBody() argument
890 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
911 if (!CheckConstexprDeclStmt(*this, Dcl, cast<DeclStmt>(*BodyIt))) in CheckConstexprFunctionBody()
917 if (isa<CXXConstructorDecl>(Dcl)) in CheckConstexprFunctionBody()
928 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
933 = dyn_cast<CXXConstructorDecl>(Dcl)) { in CheckConstexprFunctionBody()
943 Diag(Dcl->getLocation(), diag::err_constexpr_union_ctor_no_init); in CheckConstexprFunctionBody()
979 CheckConstexprCtorInitializer(*this, Dcl, *I, Inits, Diagnosed); in CheckConstexprFunctionBody()
986 Diag(Dcl->getLocation(), diag::err_constexpr_body_no_return); in CheckConstexprFunctionBody()
1008 if (!Expr::isPotentialConstantExpr(Dcl, Diags)) { in CheckConstexprFunctionBody()
1009 Diag(Dcl->getLocation(), diag::ext_constexpr_function_never_constant_expr) in CheckConstexprFunctionBody()
1010 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
6213 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) { in ActOnFinishNamespaceDef() argument
6214 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl); in ActOnFinishNamespaceDef()
10984 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) { in SetDeclDeleted() argument
10985 AdjustDeclIfTemplate(Dcl); in SetDeclDeleted()
10987 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl); in SetDeclDeleted()
11006 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) { in SetDeclDefaulted() argument
11007 CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Dcl); in SetDeclDefaulted()
11318 Decl *Dcl = ActOnDeclarator(S, D); in ActOnCXXConditionDeclaration() local
11319 if (!Dcl) in ActOnCXXConditionDeclaration()
11322 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function. in ActOnCXXConditionDeclaration()
11323 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type) in ActOnCXXConditionDeclaration()
11328 return Dcl; in ActOnCXXConditionDeclaration()