Lines Matching refs:Negated
65 if (const auto *Negated = Result.Nodes.getNodeAs<UnaryOperator>(Id)) { in getBoolLiteral() local
66 if (Negated->getOpcode() == UO_LNot && in getBoolLiteral()
67 isa<CXXBoolLiteralExpr>(Negated->getSubExpr())) in getBoolLiteral()
68 return Negated->getBeginLoc().isMacroID() ? nullptr : Negated; in getBoolLiteral()
184 const Expr *E, bool Negated, in compareExpressionToConstant() argument
191 return ExprText + " " + (Negated ? "!=" : "==") + " " + Constant; in compareExpressionToConstant()
195 const Expr *E, bool Negated) { in compareExpressionToNullPtr() argument
198 return compareExpressionToConstant(Result, E, Negated, NullPtr); in compareExpressionToNullPtr()
202 const Expr *E, bool Negated) { in compareExpressionToZero() argument
203 return compareExpressionToConstant(Result, E, Negated, "0"); in compareExpressionToZero()
207 bool Negated, const Expr *E) { in replacementExpression() argument
213 if (Negated) { in replacementExpression()
284 const Expr *stmtReturnsBool(const ReturnStmt *Ret, bool Negated) { in stmtReturnsBool() argument
286 if (Bool->getValue() == !Negated) in stmtReturnsBool()
293 if (Bool->getValue() == Negated) in stmtReturnsBool()
302 const Expr *stmtReturnsBool(const IfStmt *IfRet, bool Negated) { in stmtReturnsBool() argument
307 return stmtReturnsBool(Ret, Negated); in stmtReturnsBool()
312 return stmtReturnsBool(CompoundRet, Negated); in stmtReturnsBool()
402 const Expr *ReplaceWith, bool Negated) { in reportBinOp() argument
404 replacementExpression(Result, Negated, ReplaceWith); in reportBinOp()
616 bool Negated) { in replaceWithCondition() argument
618 replacementExpression(Result, Negated, Ternary->getCond()); in replaceWithCondition()
625 const MatchFinder::MatchResult &Result, const IfStmt *If, bool Negated) { in replaceWithReturnCondition() argument
627 std::string Condition = replacementExpression(Result, Negated, If->getCond()); in replaceWithReturnCondition()
637 bool Negated) { in replaceCompoundReturnWithCondition() argument
653 if (const Expr *Lit = stmtReturnsBool(If, Negated)) { in replaceCompoundReturnWithCondition()
660 "return " + replacementExpression(Result, Negated, Condition); in replaceCompoundReturnWithCondition()
677 bool Negated) { in replaceWithAssignment() argument
683 replacementExpression(Result, Negated, IfAssign->getCond()); in replaceWithAssignment()