-
Notifications
You must be signed in to change notification settings - Fork 10
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
[clang-tidy] Vote: Add efficiency checks #61
[clang-tidy] Vote: Add efficiency checks #61
Conversation
Tbh most of those seem like mostly pointless "optimization" to me, that also mostly make the code harder to read and develop. I feel very often readability greatly outweights the tiny (if any) benefits and in rare cases it matters a developer could do it manually. E.g. all those string things could be relevant if an app does that a lot inside hot loops, where minor optimizations may also matter, but that is not what we have. And so it would be just annoying for no gain. So I am against most of that, with few exceptions. This applies to most of my
|
|
|
Well, it's not like these rules are coming to us from Mount Sinai. I think projects should always be allowed to change individual rules (minus the style rules) if it makes more sense. |
@psychocoderHPC We need a tie breaker, please vote :-) |
I voted only for few options and solved the issue which 2:2 for |
It is not bad, but it is super noisy. For example it flags all type traits, because they occupy 1 byte but have an alignment of 0 :) But just try yourself for alpaka! I think the checks makes sense for small programs and maybe when targeting embedded systems. |
76f6c6e
to
7f12dd2
Compare
Voting will close on 09 September EOD (German time).
std::string::find
- Link<algorithm>
- Linkstd::string
concatenations - Link. Strict mode enabledstd::vector
operations - Linkstd::move
- Linkreturn
- Linknoexcept
- Link<cmath>
- Linkconst&
- LinkVote template
Vote
std::string::find
<algorithm>
std::string
concatstd::vector
opsstd::move
noexcept
<cmath>
const&