More clang-tidy fixes - #22
Conversation
|
@hjmjohnson these changes are quite conservative, care to review? @gdevenyi maybe you'd like to review too? |
|
@seanm you asked me to review this back in July — sorry for the delay. LGTM. I checked each hunk: the |
d4e1797 to
8383198
Compare
8383198 to
332003a
Compare
332003a to
0ad9e3e
Compare
|
Rebased onto current One thing worth a maintainer's eye before merge: the Rebase
Commit messagesBoth subjects were bare sentences; they now carry the project's No regression test — and why
Build and testmacOS/arm64, Ninja, Release, |
|
@hjmjohnson this isn't ITK and doesn't need the |
0ad9e3e to
fefe004
Compare
Fixes some clang-tidy bugprone-macro-parentheses warnings. Would be an issue where an argument that is an expression would evaluated different with different precedence.
Fixes many bugprone-implicit-widening-of-multiplication-result warnings. Here the multiplications were happening in small types (int, usually 32 bit) then stored in large types (size_t, usually 64 bit). The multiplication could have overflowed. Now the multiplication is done with large types and thus less likely to overflow.
fefe004 to
2e88e05
Compare
|
I have fixed the commit messages. |
No description provided.