We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c51b24c commit 02ae197Copy full SHA for 02ae197
clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
@@ -929,16 +929,6 @@ static bool areExprsSameMacroOrLiteral(const BinaryOperator *BinOp,
929
930
const auto *LStrl = dyn_cast<StringLiteral>(Lhs);
931
const auto *RStrl = dyn_cast<StringLiteral>(Rhs);
932
- if (Lil && Ril) {
933
- const llvm::StringRef L = Lexer::getSourceText(
934
- CharSourceRange::getTokenRange(LStrl->getBeginLoc()), SM,
935
- Context->getLangOpts(), 0);
936
- const llvm::StringRef R = Lexer::getSourceText(
937
- CharSourceRange::getTokenRange(RStrl->getBeginLoc()), SM,
938
939
- return L.compare(R) == 0;
940
- }
941
-
942
const auto *Lbl = dyn_cast<CXXBoolLiteralExpr>(Lhs);
943
const auto *Rbl = dyn_cast<CXXBoolLiteralExpr>(Rhs);
944
if (Lbl && Rbl)
0 commit comments