[PATCH] D27210: [clang-tidy] misc-string-compare. Adding a new check to clang-tidy
Malcolm Parsons via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 30 06:17:49 PST 2016
malcolm.parsons added inline comments.
================
Comment at: clang-tidy/misc/MiscStringCompareCheck.cpp:48
+ Finder->addMatcher(ifStmt(hasCondition(binaryOperator(hasOperatorName("=="),
+ hasLHS(strCompare))))
+ .bind("match"),
----------------
malcolm.parsons wrote:
> Doesn't test RHS.
I mean: doesn't test whether RHS is zero.
https://reviews.llvm.org/D27210
More information about the cfe-commits
mailing list