Lines Matching defs:Dcl

816 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
844 << isa<CXXConstructorDecl>(Dcl);
858 << isa<CXXConstructorDecl>(Dcl);
877 << isa<CXXConstructorDecl>(Dcl)
885 isa<CXXConstructorDecl>(Dcl)))
891 << isa<CXXConstructorDecl>(Dcl);
899 << isa<CXXConstructorDecl>(Dcl);
913 << isa<CXXConstructorDecl>(Dcl);
923 /// \param Dcl The constexpr constructor being checked.
930 const FunctionDecl *Dcl,
951 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init);
961 CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed);
968 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S,
983 if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc))
989 if (isa<CXXConstructorDecl>(Dcl)) {
1006 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, BodyIt, ReturnStmts,
1024 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, If->getThen(), ReturnStmts,
1028 !CheckConstexprFunctionStmt(SemaRef, Dcl, If->getElse(), ReturnStmts,
1047 !CheckConstexprFunctionStmt(SemaRef, Dcl, *Children, ReturnStmts,
1062 !CheckConstexprFunctionStmt(SemaRef, Dcl, *Children, ReturnStmts,
1078 << isa<CXXConstructorDecl>(Dcl);
1086 bool Sema::CheckConstexprFunctionBody(const FunctionDecl *Dcl, Stmt *Body) {
1098 << isa<CXXConstructorDecl>(Dcl);
1109 if (!CheckConstexprFunctionStmt(*this, Dcl, BodyIt, ReturnStmts, Cxx1yLoc))
1118 << isa<CXXConstructorDecl>(Dcl);
1121 = dyn_cast<CXXConstructorDecl>(Dcl)) {
1132 Diag(Dcl->getLocation(), diag::err_constexpr_union_ctor_no_init);
1169 CheckConstexprCtorInitializer(*this, Dcl, I, Inits, Diagnosed);
1181 (Dcl->getReturnType()->isVoidType() ||
1182 Dcl->getReturnType()->isDependentType());
1183 Diag(Dcl->getLocation(),
1209 if (!Expr::isPotentialConstantExpr(Dcl, Diags)) {
1210 Diag(Dcl->getLocation(), diag::ext_constexpr_function_never_constant_expr)
1211 << isa<CXXConstructorDecl>(Dcl);
6861 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
6862 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
12119 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) {
12120 AdjustDeclIfTemplate(Dcl);
12122 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl);
12178 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
12179 CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Dcl);
12430 /// an initializer for the out-of-line declaration 'Dcl'. The scope
12433 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
12480 Decl *Dcl = ActOnDeclarator(S, D);
12481 if (!Dcl)
12484 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
12485 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
12490 return Dcl;