[PATCH] D19118: [clang-tidy] Add checker for operations between integrals and pointers

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 14 09:19:45 PDT 2016


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG. Nice check!


================
Comment at: test/clang-tidy/misc-pointer-and-integral-operation-cxx98.cpp:9
@@ +8,3 @@
+  pb = false;
+  // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: suspicious assignment from bool to pointer
+  pc = '\0';
----------------
Specify the whole message including the check name once.


http://reviews.llvm.org/D19118





More information about the cfe-commits mailing list