[PATCH] D19014: [clang-tidy] Add new checker for suspicious sizeof expressions
Malcolm Parsons via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 13 06:54:31 PDT 2016
malcolm.parsons added a subscriber: malcolm.parsons.
================
Comment at: docs/clang-tidy/checks/misc-sizeof-expression.rst:16
@@ +15,3 @@
+A common mistake is to query the ``sizeof`` of an integer literal. This is
+equivalent to query the size of it's type (probably ``int``). The intent of the
+programmer was probably to simply get the integer and not its size.
----------------
s/it's/its/
http://reviews.llvm.org/D19014
More information about the cfe-commits
mailing list