-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Clang-tidy fixes in header files #4567
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
Conversation
|
Dang, I didn't realize that |
awelzel
left a comment
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.
Uff, thanks for doing this all. Had some thoughts and opinions here and there, but feel free to push back. The "random thoughts" are also just things that came in mind looking at the code, so do whatever you like with those :-)
3bcb78e to
ddf9292
Compare
ddf9292 to
5a1eb21
Compare
|
zeek/cmake#137 still needs a review as part of this. |
…rnings in headers
This one is weird. This checker complains because we tend to use PList, which sets the type of T to a pointer. The checker is making note that we're doing sizeof() on a pointer, which always returns the same value every time. It's asking whether we meant to do that, or if we meant to pass the actual type to sizeof.
5a1eb21 to
6aa5145
Compare
After the last round of clang-tidy fixes, I discovered that it was never configured to cover header files and was only scanning cc files and what little bit of headers that it saw during builds. This PR expands coverage to all of the headers in the Zeek repo, including generated code. It explicitly excludes files from src/3rdparty and broker, and anything that comes from a directory external to the repo itself. It looks like a lot of commits, but most of them are very small. The really huge ones are performance-enum-size and cppcoreguidelines-macro-usage.
This relies on these PRs in other repos: zeek/bifcl#40, zeek/binpac#45, zeek/cmake#137, zeek/gen-zam#17
Sorry this one turned into such a codefist 👊🏼