[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:56:10 PST 2016
danielmarjamaki marked 2 inline comments as done.
================
Comment at: test/clang-tidy/readability-non-const-parameter.cpp:4
@@ +3,3 @@
+// Currently the checker only warns about pointer arguments.
+//
+// It can be defined both that the data is const and that the pointer is const,
----------------
> Imho, I would like to have a warning when the data is modified even though *p is const. Like this:
hmm.. sorry about that.. that is of course out-of-scope for this check so not relevant to discuss here.
http://reviews.llvm.org/D15332
More information about the cfe-commits
mailing list