[PATCH] D18703: [clang-tidy] Add new checker for comparison with runtime string functions.

Eugene Zelenko via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 1 11:55:28 PDT 2016


Eugene.Zelenko added inline comments.

================
Comment at: docs/clang-tidy/checks/misc-suspicious-string-compare.rst:12
@@ +11,3 @@
+Example:
+  if (strcmp(...))       // Implicitly compare to zero
+  if (!strcmp(...))      // Won't warn
----------------
I don't know documentation markup well, but looks like you need to add ".. code-block:: c++" before code snippet. See performance-implicit-cast-in-loop for example.


http://reviews.llvm.org/D18703





More information about the cfe-commits mailing list