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

References

tools/clang/lib/AST/ExprConstant.cpp
11271   if (E->getOpcode() == BO_Comma) {
11278   if (E->isLogicalOp()) {
11285         if (E->getOpcode() == BO_LOr)
11286           return Success(lhsResult || rhsResult, E, Result);
11288           return Success(lhsResult && rhsResult, E, Result);
11294         if (rhsResult == (E->getOpcode() == BO_LOr))
11295           return Success(rhsResult, E, Result);
11302   assert(E->getLHS()->getType()->isIntegralOrEnumerationType() &&
11303          E->getRHS()->getType()->isIntegralOrEnumerationType());
11312   if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) {
11314     addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub);
11319   if (E->getOpcode() == BO_Add &&
11326   if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) {
11349     return Error(E);
11354   APSInt Value(Info.Ctx.getIntWidth(E->getType()),
11355                E->getType()->isUnsignedIntegerOrEnumerationType());
11356   if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(),
11356   if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(),
11359   return Success(Value, E, Result);