Lines Matching refs:Dcl
1781 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1784 static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl);
1876 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
1908 << isa<CXXConstructorDecl>(Dcl);
1924 << isa<CXXConstructorDecl>(Dcl);
1952 << isa<CXXConstructorDecl>(Dcl)
1961 isa<CXXConstructorDecl>(Dcl),
1966 isa<CXXConstructorDecl>(Dcl))) {
1977 << isa<CXXConstructorDecl>(Dcl);
1989 << isa<CXXConstructorDecl>(Dcl);
2007 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
2018 /// \param Dcl The constexpr constructor being checked.
2030 const FunctionDecl *Dcl,
2058 SemaRef.Diag(Dcl->getLocation(),
2075 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed,
2085 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S,
2102 if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc, Kind))
2108 if (isa<CXXConstructorDecl>(Dcl)) {
2122 SemaRef, Dcl, cast<AttributedStmt>(S)->getSubStmt(), ReturnStmts,
2132 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, BodyIt, ReturnStmts,
2145 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, If->getThen(), ReturnStmts,
2149 !CheckConstexprFunctionStmt(SemaRef, Dcl, If->getElse(), ReturnStmts,
2168 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2184 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2196 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2210 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2220 SemaRef, Dcl, cast<CXXCatchStmt>(S)->getHandlerBlock(), ReturnStmts,
2237 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
2247 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
2276 << isa<CXXConstructorDecl>(Dcl);
2289 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2306 << isa<CXXConstructorDecl>(Dcl);
2312 << isa<CXXConstructorDecl>(Dcl);
2318 << isa<CXXConstructorDecl>(Dcl);
2322 = dyn_cast<CXXConstructorDecl>(Dcl)) {
2335 Dcl->getLocation(),
2377 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed,
2386 if (!CheckConstexprMissingReturn(SemaRef, Dcl))
2437 SemaRef.getSourceManager().isInSystemHeader(Dcl->getLocation()) ||
2439 diag::ext_constexpr_function_never_constant_expr, Dcl->getLocation());
2442 !Expr::isPotentialConstantExpr(Dcl, Diags)) {
2443 SemaRef.Diag(Dcl->getLocation(),
2445 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval()
2446 << Dcl->getNameInfo().getSourceRange();
2457 const FunctionDecl *Dcl) {
2458 bool IsVoidOrDependentType = Dcl->getReturnType()->isVoidType() ||
2459 Dcl->getReturnType()->isDependentType();
2471 SemaRef.Diag(Dcl->getLocation(),
2474 << Dcl->isConsteval();
11698 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
11699 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
11707 Dcl->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported);
17920 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc,
17922 AdjustDeclIfTemplate(Dcl);
17924 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl);
17973 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
17974 if (!Dcl || Dcl->isInvalidDecl())
17977 auto *FD = dyn_cast<FunctionDecl>(Dcl);
17979 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(Dcl)) {
18337 /// 'Dcl'.
18339 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
18397 Decl *Dcl = ActOnDeclarator(S, D);
18398 if (!Dcl)
18401 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
18402 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
18407 if (auto *VD = dyn_cast<VarDecl>(Dcl))
18410 return Dcl;