Searched refs:VDecl (Results 1 – 5 of 5) sorted by relevance
6373 VarDecl *VDecl = dyn_cast<VarDecl>(RealDecl); in AddInitializerToDecl() local6374 if (!VDecl) { in AddInitializerToDecl()6386 if ((!VDecl->hasLocalStorage() || VDecl->getType()->isReferenceType()) && in AddInitializerToDecl()6387 (isa<InitListExpr>(Init) || !VDecl->getType()->isRecordType())) in AddInitializerToDecl()6395 (Auto = VDecl->getType()->getContainedAutoType()) && in AddInitializerToDecl()6406 << VDecl->getDeclName() << VDecl->getType() in AddInitializerToDecl()6407 << VDecl->getSourceRange(); in AddInitializerToDecl()6413 << VDecl->getDeclName() << VDecl->getType() in AddInitializerToDecl()6414 << VDecl->getSourceRange(); in AddInitializerToDecl()6422 if (DeduceAutoType(VDecl->getTypeSourceInfo(), DeduceInit, DeducedType) == in AddInitializerToDecl()[all …]
3624 void Sema::DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) { in DiagnoseAutoDeductionFailure() argument3626 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()3628 << VDecl->getDeclName() << VDecl->getType() << Init->getSourceRange(); in DiagnoseAutoDeductionFailure()3630 Diag(VDecl->getLocation(), diag::err_auto_var_deduction_failure) in DiagnoseAutoDeductionFailure()3631 << VDecl->getDeclName() << VDecl->getType() << Init->getType() in DiagnoseAutoDeductionFailure()
2444 if (VarDecl *VDecl = dyn_cast<VarDecl>(*I)) { in ActOnAtEnd() local2445 if (!VDecl->hasExternalStorage()) in ActOnAtEnd()2446 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
94 } else if (VarDecl *VDecl = dyn_cast<VarDecl>(Decl)) { in VisitDeclRefExpr() local98 if (VDecl->isLocalVarDecl()) in VisitDeclRefExpr()101 << VDecl->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr()
5389 void DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init);