Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaDecl.cpp9086 QualType Sema::deduceVarTypeFromInitializer(VarDecl *VDecl, in deduceVarTypeFromInitializer() argument
9091 bool IsInitCapture = !VDecl; in deduceVarTypeFromInitializer()
9092 assert((!VDecl || !VDecl->isInitCapture()) && in deduceVarTypeFromInitializer()
9146 DiagnoseAutoDeductionFailure(VDecl, DeduceInit); in deduceVarTypeFromInitializer()
9196 VarDecl *VDecl = dyn_cast<VarDecl>(RealDecl); in AddInitializerToDecl() local
9197 if (!VDecl) { in AddInitializerToDecl()
9205 if (TypeMayContainAuto && VDecl->getType()->isUndeducedType()) { in AddInitializerToDecl()
9209 ExprResult Res = CorrectDelayedTyposInExpr(Init, VDecl); in AddInitializerToDecl()
9217 VDecl, VDecl->getDeclName(), VDecl->getType(), in AddInitializerToDecl()
9218 VDecl->getTypeSourceInfo(), VDecl->getSourceRange(), DirectInit, Init); in AddInitializerToDecl()
[all …]
DSemaTemplateDeduction.cpp4126 void Sema::DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init) { in DiagnoseAutoDeductionFailure() argument
4128 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()
4129 VDecl->isInitCapture() in DiagnoseAutoDeductionFailure()
4132 << VDecl->getDeclName() << VDecl->getType() << Init->getSourceRange(); in DiagnoseAutoDeductionFailure()
4134 Diag(VDecl->getLocation(), in DiagnoseAutoDeductionFailure()
4135 VDecl->isInitCapture() ? diag::err_init_capture_deduction_failure in DiagnoseAutoDeductionFailure()
4137 << VDecl->getDeclName() << VDecl->getType() << Init->getType() in DiagnoseAutoDeductionFailure()
DSemaDeclObjC.cpp3733 if (VarDecl *VDecl = dyn_cast<VarDecl>(*I)) { in ActOnAtEnd() local
3734 if (!VDecl->hasExternalStorage()) in ActOnAtEnd()
3735 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
DSemaExpr.cpp9308 } else if (const VarDecl *VDecl = dyn_cast<VarDecl>(VD)) { in DiagnoseConstAssignment() local
9309 if (VDecl->getType().isConstQualified()) { in DiagnoseConstAssignment()
9312 << ExprRange << ConstMember << true /*static*/ << VDecl in DiagnoseConstAssignment()
9313 << VDecl->getType(); in DiagnoseConstAssignment()
9317 << ConstMember << true /*static*/ << VDecl << VDecl->getType() in DiagnoseConstAssignment()
9318 << 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.cpp1423 auto VDecl = cast<VarDecl>(Helper->getDecl()); in EmitOMPHelperVar() local
1424 CGF.EmitVarDecl(*VDecl); in EmitOMPHelperVar()
/external/clang/include/clang/Sema/
DSema.h6412 void DiagnoseAutoDeductionFailure(VarDecl *VDecl, Expr *Init);
6416 QualType deduceVarTypeFromInitializer(VarDecl *VDecl, DeclarationName Name,