reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/AST/ExprConstant.cpp
 3511     Info.FFDiag(E);
 3516     Info.FFDiag(E, diag::note_constexpr_access_null) << AK;
 3524         Info.getCallFrameAndDepth(LVal.getLValueCallIndex());
 3526       Info.FFDiag(E, diag::note_constexpr_lifetime_ended, 1)
 3528       NoteLValueLocation(Info, LVal.Base);
 3540     if (Info.getLangOpts().CPlusPlus)
 3541       Info.FFDiag(E, diag::note_constexpr_access_volatile_type)
 3544       Info.FFDiag(E);
 3562       if (const VarDecl *VDef = VD->getDefinition(Info.Ctx))
 3566       Info.FFDiag(E);
 3573       if (Info.getLangOpts().CPlusPlus14 &&
 3574           lifetimeStartedInEvaluation(Info, LVal.Base)) {
 3580         Info.FFDiag(E, diag::note_constexpr_modify_global);
 3588               (Info.getLangOpts().OpenCL &&
 3592           if (Info.getLangOpts().CPlusPlus) {
 3593             Info.FFDiag(E, diag::note_constexpr_ltor_non_const_int, 1) << VD;
 3594             Info.Note(VD->getLocation(), diag::note_declared_at);
 3596             Info.FFDiag(E);
 3606         if (Info.getLangOpts().CPlusPlus11) {
 3607           Info.CCEDiag(E, diag::note_constexpr_ltor_non_constexpr, 1) << VD;
 3608           Info.Note(VD->getLocation(), diag::note_declared_at);
 3610           Info.CCEDiag(E);
 3612       } else if (BaseType.isConstQualified() && VD->hasDefinition(Info.Ctx)) {
 3613         Info.CCEDiag(E, diag::note_constexpr_ltor_non_constexpr) << VD;
 3617         if (Info.checkingPotentialConstantExpression() &&
 3618             VD->getType().isConstQualified() && !VD->hasDefinition(Info.Ctx)) {
 3621         } else if (Info.getLangOpts().CPlusPlus11) {
 3622           Info.FFDiag(E, diag::note_constexpr_ltor_non_constexpr, 1) << VD;
 3623           Info.Note(VD->getLocation(), diag::note_declared_at);
 3625           Info.FFDiag(E);
 3631     if (!evaluateVarDeclInit(Info, E, VD, Frame, BaseVal, &LVal))
 3634     Optional<DynAlloc*> Alloc = Info.lookupDynamicAlloc(DA);
 3636       Info.FFDiag(E, diag::note_constexpr_access_deleted_object) << AK;
 3671             !lifetimeStartedInEvaluation(Info, LVal.Base)) {
 3674           Info.FFDiag(E, diag::note_constexpr_access_static_temporary, 1) << AK;
 3675           Info.Note(MTE->getExprLoc(), diag::note_constexpr_temporary_here);
 3679         BaseVal = Info.Ctx.getMaterializedTemporaryValue(MTE, false);
 3686         Info.FFDiag(E, diag::note_constexpr_access_unreadable_object)
 3688             << Val.getAsString(Info.Ctx,
 3689                                Info.Ctx.getLValueReferenceType(LValType));
 3690         NoteLValueLocation(Info, LVal.Base);
 3704   if ((Frame && Info.getLangOpts().CPlusPlus14 &&
 3705        Info.EvalStatus.HasSideEffects) ||
 3706       (isModification(AK) && Depth < Info.SpeculativeEvaluationDepth))