[PATCH] D12359: New warning -Wnonconst-parameter when a pointer parameter can be const
Daniel Marjamäki via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 23 05:34:04 PDT 2015
danielmarjamaki updated this revision to Diff 35482.
danielmarjamaki marked 9 inline comments as done.
danielmarjamaki added a comment.
With the previous patch there was much noise when building Clang. I have fixed many false positives with improved handling of C++ code. However I have not been able to properly handle templates yet.
With this patch, no -Wnonconst-parameter diagnostics are written for C++ code. I hope that it will be possible to fix the noise for C++ code later and enable this diagnostic for C++ code also.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 18740 bytes
Desc: not available
More information about the cfe-commits