-
Notifications
You must be signed in to change notification settings - Fork 143
CI: Add CI checks with clang-tidy #454
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
base: main
Are you sure you want to change the base?
Conversation
db3f89a
to
ac60326
Compare
8d0fcce
to
1020655
Compare
Signed-off-by: Taylor Foxhall <[email protected]>
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.
This looks good to me; however I think the PR should also fix the issues clang-tidy
finds, so we're not left with a failing CI. Maybe it makes sense to start out with a very small set of checks and have more PRs to incrementally enable more.
"inherits": "base" | ||
}, | ||
{ |
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.
This is a good change even beyond clang-tidy. Simplifies CI a lot.
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.
Coming back to this and in reference to our (@hallfox, @emelialei88) offline discussion earlier today, it may be best to pull this out into its own PR (plus other useful presets).
I'll take a stab at this tomorrow and send it your way.
This adds a new check to our workflows using clang-tidy. Right now we only enable analyzer checks, though we could look at expanding to more in the future. We are primarily interested in getting another pass over our code checking for C++03 syntax compatibility, since we've had a few instances of modern syntax constructs getting into the code base.
clang-tidy
will do a bit more than syntax checks, but I believe having will be a boon overall.