[PATCH] D23427: [Clang-tidy] Comparison Misuse

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 13 02:54:02 PST 2017


xazax.hun abandoned this revision.
xazax.hun added a comment.

For the first case ToT clang compiler gives a warning (-Wstring-compare), for the second case, it generates a compiler error (error: ordered comparison between pointer and zero). Note that, older versions of clang did not even give a warning for that case.

It looks like this check no longer makes sense considering the current warnings and errors of clang top of tree.


Repository:
  rL LLVM

https://reviews.llvm.org/D23427





More information about the cfe-commits mailing list