Lines Matching refs:BO
87 } else if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { in skipRValueSubobjectAdjustments() local
88 if (BO->isPtrMemOp()) { in skipRValueSubobjectAdjustments()
89 assert(BO->getRHS()->isRValue()); in skipRValueSubobjectAdjustments()
90 E = BO->getLHS(); in skipRValueSubobjectAdjustments()
92 BO->getRHS()->getType()->getAs<MemberPointerType>(); in skipRValueSubobjectAdjustments()
93 Adjustments.push_back(SubobjectAdjustment(MPT, BO->getRHS())); in skipRValueSubobjectAdjustments()
95 } else if (BO->getOpcode() == BO_Comma) { in skipRValueSubobjectAdjustments()
96 CommaLHSs.push_back(BO->getLHS()); in skipRValueSubobjectAdjustments()
97 E = BO->getRHS(); in skipRValueSubobjectAdjustments()
136 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { in isKnownToHaveBooleanValue() local
137 switch (BO->getOpcode()) { in isKnownToHaveBooleanValue()
153 return BO->getLHS()->isKnownToHaveBooleanValue() && in isKnownToHaveBooleanValue()
154 BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
158 return BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
1169 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(CEE)) { in getCalleeDecl() local
1170 if (BO->isPtrMemOp()) in getCalleeDecl()
1171 CEE = BO->getRHS()->IgnoreParenCasts(); in getCalleeDecl()
2069 const BinaryOperator *BO = cast<BinaryOperator>(this); in isUnusedResultAWarning() local
2070 switch (BO->getOpcode()) { in isUnusedResultAWarning()
2079 dyn_cast<IntegerLiteral>(BO->getRHS()->IgnoreParens())) in isUnusedResultAWarning()
2082 return BO->getRHS()->isUnusedResultAWarning(WarnE, Loc, R1, R2, Ctx); in isUnusedResultAWarning()
2086 if (!BO->getLHS()->isUnusedResultAWarning(WarnE, Loc, R1, R2, Ctx) || in isUnusedResultAWarning()
2087 !BO->getRHS()->isUnusedResultAWarning(WarnE, Loc, R1, R2, Ctx)) in isUnusedResultAWarning()
2091 if (BO->isAssignmentOp()) in isUnusedResultAWarning()
2094 Loc = BO->getOperatorLoc(); in isUnusedResultAWarning()
2095 R1 = BO->getLHS()->getSourceRange(); in isUnusedResultAWarning()
2096 R2 = BO->getRHS()->getSourceRange(); in isUnusedResultAWarning()
2664 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) in isTemporaryObject() local
2665 if (BO->isPtrMemOp()) in isTemporaryObject()
3304 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(E)) { in getObjCProperty() local
3305 if (BO->getOpcode() == BO_Comma) { in getObjCProperty()
3306 E = BO->getRHS(); in getObjCProperty()