Lines Matching defs:Dcl

1829 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1832 static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl);
1924 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
1956 << isa<CXXConstructorDecl>(Dcl);
1972 << isa<CXXConstructorDecl>(Dcl);
2000 << isa<CXXConstructorDecl>(Dcl)
2009 isa<CXXConstructorDecl>(Dcl),
2014 isa<CXXConstructorDecl>(Dcl))) {
2025 << isa<CXXConstructorDecl>(Dcl);
2037 << isa<CXXConstructorDecl>(Dcl);
2055 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
2066 /// \param Dcl The constexpr constructor being checked.
2078 const FunctionDecl *Dcl,
2106 SemaRef.Diag(Dcl->getLocation(),
2123 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed,
2133 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S,
2150 if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc, Kind))
2156 if (isa<CXXConstructorDecl>(Dcl)) {
2170 SemaRef, Dcl, cast<AttributedStmt>(S)->getSubStmt(), ReturnStmts,
2180 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, BodyIt, ReturnStmts,
2193 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, If->getThen(), ReturnStmts,
2197 !CheckConstexprFunctionStmt(SemaRef, Dcl, If->getElse(), ReturnStmts,
2216 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2232 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2244 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2258 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2268 SemaRef, Dcl, cast<CXXCatchStmt>(S)->getHandlerBlock(), ReturnStmts,
2285 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval();
2295 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
2324 << isa<CXXConstructorDecl>(Dcl);
2337 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts,
2354 << isa<CXXConstructorDecl>(Dcl);
2360 << isa<CXXConstructorDecl>(Dcl);
2366 << isa<CXXConstructorDecl>(Dcl);
2370 = dyn_cast<CXXConstructorDecl>(Dcl)) {
2383 Dcl->getLocation(),
2425 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed,
2434 if (!CheckConstexprMissingReturn(SemaRef, Dcl))
2485 SemaRef.getSourceManager().isInSystemHeader(Dcl->getLocation()) ||
2487 diag::ext_constexpr_function_never_constant_expr, Dcl->getLocation());
2490 !Expr::isPotentialConstantExpr(Dcl, Diags)) {
2491 SemaRef.Diag(Dcl->getLocation(),
2493 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval()
2494 << Dcl->getNameInfo().getSourceRange();
2505 const FunctionDecl *Dcl) {
2506 bool IsVoidOrDependentType = Dcl->getReturnType()->isVoidType() ||
2507 Dcl->getReturnType()->isDependentType();
2519 SemaRef.Diag(Dcl->getLocation(),
2522 << Dcl->isConsteval();
11797 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
11798 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
11806 Dcl->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported);
18050 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc,
18052 AdjustDeclIfTemplate(Dcl);
18054 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl);
18103 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
18104 if (!Dcl || Dcl->isInvalidDecl())
18107 auto *FD = dyn_cast<FunctionDecl>(Dcl);
18109 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(Dcl)) {
18467 /// 'Dcl'.
18469 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
18527 Decl *Dcl = ActOnDeclarator(S, D);
18528 if (!Dcl)
18531 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
18532 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
18537 if (auto *VD = dyn_cast<VarDecl>(Dcl))
18540 return Dcl;