Home | History | Annotate | Download | only in Sema

Lines Matching defs:Dcl

48   /// CheckDefaultArgumentVisitor - C++ [dcl.fct.default] Traverses
82 // C++ [dcl.fct.default]p9
94 // C++ [dcl.fct.default]p7
108 // C++ [dcl.fct.default]p8:
237 // C++ [dcl.fct.default]p5
347 // C++ [dcl.fct.default]p3
384 // C++ [dcl.fct.default]p4:
397 // C++ [dcl.fct.default]p6:
496 // C++ [dcl.fct.default]p6 (DR217):
533 // C++11 [dcl.constexpr]p1: If any declaration of a function or function
593 /// [dcl.fct.default].
619 // C++ [dcl.fct.default]p4:
683 // This implements C++11 [dcl.constexpr]p3,4, as amended by DR1360.
687 // C++11 [dcl.constexpr]p4:
705 // C++11 [dcl.constexpr]p3:
740 /// body. C++0x [dcl.constexpr]p3,p4.
743 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl,
745 // C++0x [dcl.constexpr]p3 and p4:
771 << isa<CXXConstructorDecl>(Dcl);
784 << isa<CXXConstructorDecl>(Dcl);
791 << isa<CXXConstructorDecl>(Dcl);
796 << isa<CXXConstructorDecl>(Dcl);
806 /// \param Dcl The constexpr constructor being checked.
813 const FunctionDecl *Dcl,
826 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init);
837 CheckConstexprCtorInitializer(SemaRef, Dcl, *I, Inits, Diagnosed);
842 /// the permitted types of statement. C++11 [dcl.constexpr]p3,p4.
845 bool Sema::CheckConstexprFunctionBody(const FunctionDecl *Dcl, Stmt *Body) {
847 // C++11 [dcl.constexpr]p3:
853 // C++11 [dcl.constexpr]p4:
857 << isa<CXXConstructorDecl>(Dcl);
878 if (!CheckConstexprDeclStmt(*this, Dcl, cast<DeclStmt>(*BodyIt)))
884 if (isa<CXXConstructorDecl>(Dcl))
895 << isa<CXXConstructorDecl>(Dcl);
900 = dyn_cast<CXXConstructorDecl>(Dcl)) {
910 Diag(Dcl->getLocation(), diag::err_constexpr_union_ctor_no_init);
946 CheckConstexprCtorInitializer(*this, Dcl, *I, Inits, Diagnosed);
953 Diag(Dcl->getLocation(), diag::err_constexpr_body_no_return);
964 // C++11 [dcl.constexpr]p5:
968 // C++11 [dcl.constexpr]p3:
971 // C++11 [dcl.constexpr]p4:
975 if (!Expr::isPotentialConstantExpr(Dcl, Diags)) {
976 Diag(Dcl->getLocation(), diag::err_constexpr_function_never_constant_expr)
977 << isa<CXXConstructorDecl>(Dcl);
2788 // in [dcl.init].
3740 // C++0x [dcl.constexpr]p8: A constexpr specifier for a non-static member
3856 // C++11 [dcl.fct.def.default]p2:
3951 // C++11 [dcl.fct.def.default]p2:
4139 // C++11 [dcl.fct.def.default]p2:
5594 void Sema::ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace) {
5595 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl);
5740 // C++ [dcl.init.list]p2:
10418 void Sema::SetDeclDeleted(Decl *Dcl, SourceLocation DelLoc) {
10419 AdjustDeclIfTemplate(Dcl);
10421 FunctionDecl *Fn = dyn_cast<FunctionDecl>(Dcl);
10434 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Dcl);
10464 void Sema::SetDeclDefaulted(Decl *Dcl, SourceLocation DefaultLoc) {
10465 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Dcl);
10695 /// an initializer for the out-of-line declaration 'Dcl'. The scope
10698 /// After this method is called, according to [C++ 3.4.1p13], if 'Dcl' is a
10741 Decl *Dcl = ActOnDeclarator(S, D);
10742 if (!Dcl)
10745 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
10746 Diag(Dcl->getLocation(), diag::err_invalid_use_of_function_type)
10751 return Dcl;