Eugene.Zelenko added a comment.

Same mistake  could be made with new[] operator.



================
Comment at: docs/clang-tidy/checks/list.rst:10
    android-cloexec-creat
+   android-cloexec-dup
    android-cloexec-epoll-create
----------------
I think will be better to fix order of other checks separately from this check.


================
Comment at: 
docs/clang-tidy/checks/misc-misplaced-operator-in-strlen-in-alloc.rst:7
+Finds cases a value is added to or subtracted from the string in the parameter
+of ``strlen()`` method instead of to the result and use its return value as an
+argument of a memory allocation function (``malloc()``, ``calloc()``,
----------------
strlen() is function, not method.


https://reviews.llvm.org/D39121



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to