-
Notifications
You must be signed in to change notification settings - Fork 28
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 clang-tidy v15 warnings #874
Conversation
d80b704
to
7ff0537
Compare
Just noting:
On macOS which @feltech discovered as being llvm/llvm-project#54668. |
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.
Good fixes, thanks. We're no worse off on mac/etc than we were, so can tackle those in followups if you like. Do we need an Improvements entry in the release notes?
Updated release notes in 3194a59 |
3194a59
to
2e1a760
Compare
Although we have yet to move to the newer clang-tidy on CI, we aim to support devs using a newer clang-tidy than v12. Interestingly, fixing warnings in newer clang-tidy can make older (v12) clang-tidy unhappy. Apparently changing a variable to `const` causes `bugprone-infinite-loop` to trigger on Catch2 `CHECK` macros. So add a suppression for this. Signed-off-by: David Feltell <david.feltell@foundry.com>
2e1a760
to
0de33a1
Compare
Although we have yet to move to the newer
clang-tidy
on CI, we aim to support devs using a newerclang-tidy
than v12.Test Instructions
We seem to be getting cross-platform differences coming from a
std::rethrow_exception
call insrc/openassetio-python/cmodule/src/BatchElementErrorBinding.cpp
. That is, MacOS gives a warning that thestd::exception_ptr
cannot bestd::move
d, for some reason. See also #867 (comment)