[PATCH] D59103: [clang-tidy] New checker bugprone-incomplete-comparison-operator

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 11:08:44 PST 2019


lebedev.ri added inline comments.


================
Comment at: clang-tidy/bugprone/IncompleteComparisonOperatorCheck.cpp:242-243
+    diag(Operator->getBeginLoc(), "incomplete comparison operator");
+    Lhs->diagFields(*this, Operator->getBeginLoc());
+    Rhs->diagFields(*this, Operator->getBeginLoc());
+  }
----------------
These should point to the actual field decl location in the class


Repository:
  rCTE Clang Tools Extra

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59103/new/

https://reviews.llvm.org/D59103





More information about the cfe-commits mailing list