Lines Matching refs:Dcl
1725 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl,
1822 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprDeclStmt() argument
1854 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1870 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1898 << isa<CXXConstructorDecl>(Dcl) in CheckConstexprDeclStmt()
1907 isa<CXXConstructorDecl>(Dcl), in CheckConstexprDeclStmt()
1912 isa<CXXConstructorDecl>(Dcl))) { in CheckConstexprDeclStmt()
1923 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1935 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprDeclStmt()
1953 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprDeclStmt()
1976 const FunctionDecl *Dcl, in CheckConstexprCtorInitializer() argument
2004 SemaRef.Diag(Dcl->getLocation(), in CheckConstexprCtorInitializer()
2021 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed, in CheckConstexprCtorInitializer()
2031 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S, in CheckConstexprFunctionStmt() argument
2048 if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc, Kind)) in CheckConstexprFunctionStmt()
2054 if (isa<CXXConstructorDecl>(Dcl)) { in CheckConstexprFunctionStmt()
2068 SemaRef, Dcl, cast<AttributedStmt>(S)->getSubStmt(), ReturnStmts, in CheckConstexprFunctionStmt()
2078 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, BodyIt, ReturnStmts, in CheckConstexprFunctionStmt()
2091 if (!CheckConstexprFunctionStmt(SemaRef, Dcl, If->getThen(), ReturnStmts, in CheckConstexprFunctionStmt()
2095 !CheckConstexprFunctionStmt(SemaRef, Dcl, If->getElse(), ReturnStmts, in CheckConstexprFunctionStmt()
2114 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts, in CheckConstexprFunctionStmt()
2130 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts, in CheckConstexprFunctionStmt()
2142 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts, in CheckConstexprFunctionStmt()
2156 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts, in CheckConstexprFunctionStmt()
2166 SemaRef, Dcl, cast<CXXCatchStmt>(S)->getHandlerBlock(), ReturnStmts, in CheckConstexprFunctionStmt()
2183 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprFunctionStmt()
2193 static bool CheckConstexprFunctionBody(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprFunctionBody() argument
2222 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
2235 !CheckConstexprFunctionStmt(SemaRef, Dcl, SubStmt, ReturnStmts, in CheckConstexprFunctionBody()
2252 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
2258 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
2264 << isa<CXXConstructorDecl>(Dcl); in CheckConstexprFunctionBody()
2268 = dyn_cast<CXXConstructorDecl>(Dcl)) { in CheckConstexprFunctionBody()
2281 Dcl->getLocation(), in CheckConstexprFunctionBody()
2323 if (!CheckConstexprCtorInitializer(SemaRef, Dcl, I, Inits, Diagnosed, in CheckConstexprFunctionBody()
2335 (Dcl->getReturnType()->isVoidType() || in CheckConstexprFunctionBody()
2336 Dcl->getReturnType()->isDependentType()); in CheckConstexprFunctionBody()
2339 SemaRef.Diag(Dcl->getLocation(), in CheckConstexprFunctionBody()
2342 << Dcl->isConsteval(); in CheckConstexprFunctionBody()
2391 !Expr::isPotentialConstantExpr(Dcl, Diags)) { in CheckConstexprFunctionBody()
2392 SemaRef.Diag(Dcl->getLocation(), in CheckConstexprFunctionBody()
2394 << isa<CXXConstructorDecl>(Dcl) << Dcl->isConsteval(); in CheckConstexprFunctionBody()
11267 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) { in ActOnFinishNamespaceDef() argument
11268 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl); in ActOnFinishNamespaceDef()
11276 Dcl->setModuleOwnershipKind(Decl::ModuleOwnershipKind::VisibleWhenImported); in ActOnFinishNamespaceDef()
17261 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) { in SetDeclDeleted() argument
17262 AdjustDeclIfTemplate(Dcl); in SetDeclDeleted()
17264 FunctionDecl *Fn = dyn_cast_or_null<FunctionDecl>(Dcl); in SetDeclDeleted()
17313 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) { in SetDeclDefaulted() argument
17314 if (!Dcl || Dcl->isInvalidDecl()) in SetDeclDefaulted()
17317 auto *FD = dyn_cast<FunctionDecl>(Dcl); in SetDeclDefaulted()
17319 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(Dcl)) { in SetDeclDefaulted()
17680 Decl *Dcl = ActOnDeclarator(S, D); in ActOnCXXConditionDeclaration() local
17681 if (!Dcl) in ActOnCXXConditionDeclaration()
17684 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function. in ActOnCXXConditionDeclaration()
17685 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type) in ActOnCXXConditionDeclaration()
17690 return Dcl; in ActOnCXXConditionDeclaration()