-
Notifications
You must be signed in to change notification settings - Fork 60
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
Change C-style casts to static_cast and remove unnecessary semicolons #668
Conversation
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.
Looks like there were quite a few. Thanks for cleaning up. Minor comment for the ones where we could also use a .f
possibly.
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.
Thanks.
Here is another semicolon to be removed podio/include/podio/DataSource.h Lines 95 to 97 in df5430c
There is a clang-format check for this https://clang.llvm.org/docs/ClangFormatStyleOptions.html#removesemicolon but there is a disclaimer that it may produce incorrect code so probably we don't want to add it
Also there is a |
For casts there is |
Are these flags and pragmas supported by all the compilers we have? |
With all the compilers we have being GCC yes, but they also work fine with Clang. |
I have been playing a bit with some warnings in Key4hep and I get some from included files from podio. The C-style cast may be useful. I guess these don't hurt anyway.
BEGINRELEASENOTES
ENDRELEASENOTES