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

Richard via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 15 12:09:14 PST 2016


LegalizeAdulthood added inline comments.

================
Comment at: test/clang-tidy/readability-non-const-parameter.cpp:3
@@ +2,3 @@
+
+// Currently the checker only warns about pointer arguments.
+//
----------------
How hard is it to extend it to references?

Certainly the confusion about what is const is easier to resolve in the case of references because the references themselves are immutable.


http://reviews.llvm.org/D15332





More information about the cfe-commits mailing list