enabled and fixed modernize-pass-by-value clang-tidy warnings#4169
enabled and fixed modernize-pass-by-value clang-tidy warnings#4169danmar merged 3 commits intocppcheck-opensource:mainfrom
modernize-pass-by-value clang-tidy warnings#4169Conversation
|
Do we have a check for this? That would be quite a few false negatives to look into... |
|
We don't have a checker that recommends to pass by value and use We do have the checker that recommends to pass by reference that chr pointed out but I am not sure how valid that is after |
|
Right, I misread the title, thinking it was about passing by reference. |
|
So I will just file a basic "new check" ticket which will sit there for a while just for completeness sake. If there isn't any yet... |
|
This seems to trigger a bug in the naming add-on. I am not able to look into/work on that. Any takers are welcome and I can rebase it after that issue was fixed. |
f22c2f1 to
a658e6d
Compare
|
I suppressed the |
a658e6d to
795f8ce
Compare
The need for multiple suppressions seems a bit strange. I wonder if this is related to it being an addon. |
795f8ce to
93f5015
Compare
It appears this is already tracked as https://trac.cppcheck.net/ticket/2799 |
No description provided.