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

References

tools/clang/lib/AST/ExprConstant.cpp
11438     Info.FFDiag(E, diag::note_invalid_subexpr_in_const_expr);
11447         Info.Ctx.CompCategories.getInfoForType(E->getType());
11458     bool LHSOK = EvaluateInteger(E->getLHS(), LHS, Info);
11459     if (!LHSOK && !Info.noteFailure())
11461     if (!EvaluateInteger(E->getRHS(), RHS, Info) || !LHSOK)
11471     APFixedPoint LHSFX(Info.Ctx.getFixedPointSemantics(LHSTy));
11472     APFixedPoint RHSFX(Info.Ctx.getFixedPointSemantics(RHSTy));
11474     bool LHSOK = EvaluateFixedPointOrInteger(E->getLHS(), LHSFX, Info);
11475     if (!LHSOK && !Info.noteFailure())
11477     if (!EvaluateFixedPointOrInteger(E->getRHS(), RHSFX, Info) || !LHSOK)
11491       EvaluateLValue(E->getLHS(), LV, Info);
11494       LHSOK = EvaluateFloat(E->getLHS(), LHS.FloatReal, Info);
11500       LHSOK = EvaluateComplex(E->getLHS(), LHS, Info);
11502     if (!LHSOK && !Info.noteFailure())
11506       if (!EvaluateFloat(E->getRHS(), RHS.FloatReal, Info) || !LHSOK)
11510     } else if (!EvaluateComplex(E->getRHS(), RHS, Info) || !LHSOK)
11532     bool LHSOK = EvaluateFloat(E->getRHS(), RHS, Info);
11533     if (!LHSOK && !Info.noteFailure())
11536     if (!EvaluateFloat(E->getLHS(), LHS, Info) || !LHSOK)
11559     bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info);
11560     if (!LHSOK && !Info.noteFailure())
11563     if (!EvaluatePointer(E->getRHS(), RHSValue, Info) || !LHSOK)
11593            isOnePastTheEndOfCompleteObject(Info.Ctx, RHSValue)) ||
11595            isOnePastTheEndOfCompleteObject(Info.Ctx, LHSValue)))
11619       Info.CCEDiag(E, diag::note_constexpr_void_comparison);
11644           Info.CCEDiag(E, diag::note_constexpr_pointer_comparison_base_classes);
11646           Info.CCEDiag(E, diag::note_constexpr_pointer_comparison_base_field)
11650           Info.CCEDiag(E, diag::note_constexpr_pointer_comparison_base_field)
11655           Info.CCEDiag(E,
11664     unsigned PtrSize = Info.Ctx.getTypeSize(LHSTy);
11679       CharUnits Size = Info.Ctx.getTypeSizeInChars(BaseTy);
11698     bool LHSOK = EvaluateMemberPointer(E->getLHS(), LHSValue, Info);
11699     if (!LHSOK && !Info.noteFailure())
11702     if (!EvaluateMemberPointer(E->getRHS(), RHSValue, Info) || !LHSOK)
11717         Info.CCEDiag(E, diag::note_constexpr_compare_virtual_mem_ptr) << MD;
11720         Info.CCEDiag(E, diag::note_constexpr_compare_virtual_mem_ptr) << MD;