-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix performance-unnecessary-value-param warning reported by clang-tidy #1106
Fix performance-unnecessary-value-param warning reported by clang-tidy #1106
Conversation
By the way, I'm curious if there are any automated tools to fix relatively simple check like this one. @PragmaTwice |
@tanruixiang I think such code fixes aren't similar to formatting and are able to change program behavior, so probably it's better to fix them manually, double-checking every case. Even if, in 99.99% of cases, the 'auto-fix' will do the right thing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sure, some clang-tidy checks provide auto-fix, but it cannot guarantee 100% right for fixed code, so I recommand at least manual review these reports one by one. BTW, if you configure your editor/IDE correctly (vim/vscode/emacs with clangd or clion), you should see a |
Yes, vscode just need to download |
Thanks all. Merging... |
This close #1105