Searched refs:VDecl (Results 1 – 7 of 7) sorted by relevance
8710 VarDecl *VDecl = dyn_cast<VarDecl>(RealDecl); in AddInitializerToDecl() local8711 if (!VDecl) { in AddInitializerToDecl()8720 if (TypeMayContainAuto && VDecl->getType()->isUndeducedType()) { in AddInitializerToDecl()8743 VDecl->isInitCapture() ? diag::err_init_capture_no_expression in AddInitializerToDecl()8745 << VDecl->getDeclName() << VDecl->getType() in AddInitializerToDecl()8746 << VDecl->getSourceRange(); in AddInitializerToDecl()8751 VDecl->isInitCapture() in AddInitializerToDecl()8754 << VDecl->getDeclName() << VDecl->getType() in AddInitializerToDecl()8755 << VDecl->getSourceRange(); in AddInitializerToDecl()8763 << VDecl->getDeclName() << VDecl->getType() in AddInitializerToDecl()[all …]
4047 void Sema::DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) { in DiagnoseAutoDeductionFailure() argument4049 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()4050 VDecl->isInitCapture() in DiagnoseAutoDeductionFailure()4053 << VDecl->getDeclName() << VDecl->getType() << Init->getSourceRange(); in DiagnoseAutoDeductionFailure()4055 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()4056 VDecl->isInitCapture() ? diag::err_init_capture_deduction_failure in DiagnoseAutoDeductionFailure()4058 << VDecl->getDeclName() << VDecl->getType() << Init->getType() in DiagnoseAutoDeductionFailure()
2784 if (VarDecl *VDecl = dyn_cast<VarDecl>(*I)) { in ActOnAtEnd() local2785 if (!VDecl->hasExternalStorage()) in ActOnAtEnd()2786 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
9047 } else if (const VarDecl *VDecl = dyn_cast<VarDecl>(VD)) { in DiagnoseConstAssignment() local9048 if (VDecl->getType().isConstQualified()) { in DiagnoseConstAssignment()9051 << ExprRange << ConstMember << true /*static*/ << VDecl in DiagnoseConstAssignment()9052 << VDecl->getType(); in DiagnoseConstAssignment()9056 << ConstMember << true /*static*/ << VDecl << VDecl->getType() in DiagnoseConstAssignment()9057 << VDecl->getSourceRange(); in DiagnoseConstAssignment()
98 } else if (VarDecl *VDecl = dyn_cast<VarDecl>(Decl)) { in VisitDeclRefExpr() local102 if (VDecl->isLocalVarDecl()) in VisitDeclRefExpr()105 << VDecl->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr()
972 auto VDecl = cast<VarDecl>(Helper->getDecl()); in EmitOMPHelperVar() local973 CGF.EmitVarDecl(*VDecl); in EmitOMPHelperVar()
6148 void DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init);