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

References

tools/clang/lib/Sema/SemaDecl.cpp
16911       EltTy = Context.DependentTy;
16917         EltTy = Enum->getIntegerType();
16919           CheckConvertedConstantExpression(Val, EltTy, EnumVal,
16931           EltTy = Enum->getIntegerType();
16937           if (!isRepresentableIntegerValue(Context, EnumVal, EltTy)) {
16941               Diag(IdLoc, diag::ext_enumerator_too_large) << EltTy;
16943               Diag(IdLoc, diag::err_enumerator_too_large) << EltTy;
16948           Val = ImpCastExprToType(Val, EltTy,
16949                                   EltTy->isBooleanType() ? CK_IntegralToBoolean
16958           EltTy = Val->getType();
16974           EltTy = Val->getType();
16982       EltTy = Context.DependentTy;
16993         EltTy = Enum->getIntegerType();
16996         EltTy = Context.IntTy;
17002       EltTy = LastEnumConst->getType();
17016         QualType T = getNextLargerIntegralType(Context, EltTy);
17027               << EltTy;
17032           EltTy = T;
17039         EnumVal.setIsSigned(EltTy->isSignedIntegerOrEnumerationType());
17040         EnumVal = EnumVal.zextOrTrunc(Context.getIntWidth(EltTy));
17051                  !isRepresentableIntegerValue(Context, EnumVal, EltTy)) {
17059   if (!EltTy->isDependentType()) {
17062     EnumVal = EnumVal.extOrTrunc(Context.getIntWidth(EltTy));
17063     EnumVal.setIsSigned(EltTy->isSignedIntegerOrEnumerationType());
17066   return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy,