Home
last modified time | relevance | path

Searched refs:NeedsStaticCast (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp99 static std::string asBool(StringRef Text, bool NeedsStaticCast) { in asBool() argument
100 if (NeedsStaticCast) in asBool()
168 const bool NeedsStaticCast = needsStaticCast(E); in replacementExpression() local
206 NeedsStaticCast)); in replacementExpression()
209 if (!NeedsStaticCast && needsParensAfterUnaryNegation(E)) in replacementExpression()
218 return ("!" + asBool(Text, NeedsStaticCast)); in replacementExpression()
237 return asBool(getText(Context, *E), NeedsStaticCast); in replacementExpression()