Fix a number of clang-tidy detected defects#22416
Conversation
Test Results 22 files 22 suites 3d 8h 29m 21s ⏱️ Results for commit afe3c4e. ♻️ This comment has been updated with latest results. |
dpiparo
left a comment
There was a problem hiding this comment.
Thanks for these changes! Would it be useful to expand this kind of campaigns to other portions of the codebase, e.g. roofit or RDF, or explore other checks?
|
Thanks for this, it's great!
Yes. Maybe even sth like: |
Maybe. I think the next step would be a regular clang-tidy check for RNTuple as part of the CI. Looking into it. |
b6666a1 to
45e70d6
Compare
silverweed
left a comment
There was a problem hiding this comment.
Thanks! I have just a few comments
A copy constructor of an exception should not throw. Otherwise, during `throw RException(...)`, a second exception may be thrown that would immediately terminate the program. The fError member may throw due to the memory allocation in its string and vector members.
6bdb411 to
afe3c4e
Compare
A test run of clang-tidy on the RNTuple code with the following checks