Home
last modified time | relevance | path

Searched refs:VDecl (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Sema/
DSemaDecl.cpp9421 QualType Sema::deduceVarTypeFromInitializer(VarDecl *VDecl, in deduceVarTypeFromInitializer() argument
9426 bool IsInitCapture = !VDecl; in deduceVarTypeFromInitializer()
9427 assert((!VDecl || !VDecl->isInitCapture()) && in deduceVarTypeFromInitializer()
9481 DiagnoseAutoDeductionFailure(VDecl, DeduceInit); in deduceVarTypeFromInitializer()
9531 VarDecl *VDecl = dyn_cast<VarDecl>(RealDecl); in AddInitializerToDecl() local
9532 if (!VDecl) { in AddInitializerToDecl()
9540 if (TypeMayContainAuto && VDecl->getType()->isUndeducedType()) { in AddInitializerToDecl()
9544 ExprResult Res = CorrectDelayedTyposInExpr(Init, VDecl); in AddInitializerToDecl()
9552 VDecl, VDecl->getDeclName(), VDecl->getType(), in AddInitializerToDecl()
9553 VDecl->getTypeSourceInfo(), VDecl->getSourceRange(), DirectInit, Init); in AddInitializerToDecl()
[all …]
DSemaTemplateDeduction.cpp4118 void Sema::DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) { in DiagnoseAutoDeductionFailure() argument
4120 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()
4121 VDecl->isInitCapture() in DiagnoseAutoDeductionFailure()
4124 << VDecl->getDeclName() << VDecl->getType() << Init->getSourceRange(); in DiagnoseAutoDeductionFailure()
4126 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()
4127 VDecl->isInitCapture() ? diag::err_init_capture_deduction_failure in DiagnoseAutoDeductionFailure()
4129 << VDecl->getDeclName() << VDecl->getType() << Init->getType() in DiagnoseAutoDeductionFailure()
DSemaExprMember.cpp949 DeclResult VDecl = S.CheckVarTemplateId( in getVarTemplateSpecialization() local
951 if (VDecl.isInvalid()) in getVarTemplateSpecialization()
953 VarDecl *Var = cast<VarDecl>(VDecl.get()); in getVarTemplateSpecialization()
DSemaDeclObjC.cpp3882 if (VarDecl *VDecl = dyn_cast<VarDecl>(*I)) { in ActOnAtEnd() local
3883 if (!VDecl->hasExternalStorage()) in ActOnAtEnd()
3884 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
DSemaExpr.cpp9754 } else if (const VarDecl *VDecl = dyn_cast<VarDecl>(VD)) { in DiagnoseConstAssignment() local
9755 if (VDecl->getType().isConstQualified()) { in DiagnoseConstAssignment()
9758 << ExprRange << ConstMember << true /*static*/ << VDecl in DiagnoseConstAssignment()
9759 << VDecl->getType(); in DiagnoseConstAssignment()
9763 << ConstMember << true /*static*/ << VDecl << VDecl->getType() in DiagnoseConstAssignment()
9764 << VDecl->getSourceRange(); in DiagnoseConstAssignment()
DSemaDeclCXX.cpp98 } else if (VarDecl *VDecl = dyn_cast<VarDecl>(Decl)) { in VisitDeclRefExpr() local
102 if (VDecl->isLocalVarDecl()) in VisitDeclRefExpr()
105 << VDecl->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr()
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp1919 auto VDecl = cast<VarDecl>(Helper->getDecl()); in EmitOMPHelperVar() local
1920 CGF.EmitVarDecl(*VDecl); in EmitOMPHelperVar()
3470 auto *VDecl = cast<VarDecl>(Helper->getDecl()); in mapParam() local
3472 VDecl, [&CGF, PVD]() -> Address { return CGF.GetAddrOfLocalVar(PVD); }); in mapParam()
/external/clang/include/clang/Sema/
DSema.h6540 void DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init);
6544 QualType deduceVarTypeFromInitializer(VarDecl *VDecl, DeclarationName Name,