Eugene.Zelenko added inline comments.

================
Comment at: 
clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst:15
+
+    void bad_malloc(int n) {
+      char *p = (char*) malloc(n) + 10;
----------------
Identification. I think 2 character should be enough.


================
Comment at: 
clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst:25
+
+      char *p = (char*) malloc(n + 10);
----------------
Identification. I think 2 character should be enough.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71001/new/

https://reviews.llvm.org/D71001



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

Reply via email to