Lines Matching refs:Bop
11032 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument
11033 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr()
11034 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr()
11035 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr()
11036 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForLogicalAndInLogicalOr()
11038 << Bop->getOpcodeStr(), in EmitDiagnosticForLogicalAndInLogicalOr()
11039 Bop->getSourceRange()); in EmitDiagnosticForLogicalAndInLogicalOr()
11061 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(LHSExpr)) { in DiagnoseLogicalAndInLogicalOrLHS() local
11062 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrLHS()
11067 if (!EvaluatesAsTrue(S, Bop->getLHS())) in DiagnoseLogicalAndInLogicalOrLHS()
11068 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop); in DiagnoseLogicalAndInLogicalOrLHS()
11069 } else if (Bop->getOpcode() == BO_LOr) { in DiagnoseLogicalAndInLogicalOrLHS()
11070 if (BinaryOperator *RBop = dyn_cast<BinaryOperator>(Bop->getRHS())) { in DiagnoseLogicalAndInLogicalOrLHS()
11083 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(RHSExpr)) { in DiagnoseLogicalAndInLogicalOrRHS() local
11084 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrRHS()
11089 if (!EvaluatesAsTrue(S, Bop->getRHS())) in DiagnoseLogicalAndInLogicalOrRHS()
11090 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop); in DiagnoseLogicalAndInLogicalOrRHS()
11100 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(SubExpr)) { in DiagnoseBitwiseOpInBitwiseOp() local
11101 if (Bop->isBitwiseOp() && Bop->getOpcode() < Opc) { in DiagnoseBitwiseOpInBitwiseOp()
11102 S.Diag(Bop->getOperatorLoc(), diag::warn_bitwise_op_in_bitwise_op) in DiagnoseBitwiseOpInBitwiseOp()
11103 << Bop->getOpcodeStr() << BinaryOperator::getOpcodeStr(Opc) in DiagnoseBitwiseOpInBitwiseOp()
11104 << Bop->getSourceRange() << OpLoc; in DiagnoseBitwiseOpInBitwiseOp()
11105 SuggestParentheses(S, Bop->getOperatorLoc(), in DiagnoseBitwiseOpInBitwiseOp()
11107 << Bop->getOpcodeStr(), in DiagnoseBitwiseOpInBitwiseOp()
11108 Bop->getSourceRange()); in DiagnoseBitwiseOpInBitwiseOp()
11115 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(SubExpr)) { in DiagnoseAdditionInShift() local
11116 if (Bop->getOpcode() == BO_Add || Bop->getOpcode() == BO_Sub) { in DiagnoseAdditionInShift()
11117 StringRef Op = Bop->getOpcodeStr(); in DiagnoseAdditionInShift()
11118 S.Diag(Bop->getOperatorLoc(), diag::warn_addition_in_bitshift) in DiagnoseAdditionInShift()
11119 << Bop->getSourceRange() << OpLoc << Shift << Op; in DiagnoseAdditionInShift()
11120 SuggestParentheses(S, Bop->getOperatorLoc(), in DiagnoseAdditionInShift()
11122 Bop->getSourceRange()); in DiagnoseAdditionInShift()