[PATCH] D15332: new clang-tidy checker readability-non-const-parameter

Daniel Marjamäki via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 03:49:34 PST 2016


danielmarjamaki marked 7 inline comments as done.

================
Comment at: docs/clang-tidy/checks/readability-non-const-parameter.rst:16
@@ +15,3 @@
+  // warning here; the declaration "const char *p" would make the function
+  // interface safer.
+  char f1(char *p)
----------------
thanks. I have tried to make it more clear in latest patch.

================
Comment at: docs/clang-tidy/checks/readability-non-const-parameter.rst:33
@@ +32,3 @@
+    return x;
+  }
+
----------------
thanks. fixed in latest patch.


http://reviews.llvm.org/D15332





More information about the cfe-commits mailing list