-
Notifications
You must be signed in to change notification settings - Fork 492
PS-9760 Adds clang-tidy checks to CircleCI #5627
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
An example run with debug info can be seen here https://circleci.com/gh/percona/percona-server/8821 |
9fed4d1
to
198b35b
Compare
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.
LGTM
198b35b
to
dc008c1
Compare
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.
LGTM with minor comment regarding -extra-arg=-stdlib=libc++
dc008c1
to
6720c3c
Compare
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.
LGTM
https://perconadev.atlassian.net/browse/PS-9760 Along with clang-format checks, CircleCI is now equipped with clang-tidy checks as well, which perform static code analysis on the files modified by a particular PR. Similar to clang-format checks, the console log of the CircleCI contains the output from the clang-tidy checks, which has 2 parts: 1. The clang-tidy warnings, considering the corresponding C++ standard, C++ standard library, and respective header files using the generated compile_commands.json file. 2. The clang-tidy suggestions, using same information from above, applied as a diff on the modified files. This helps visualise the recommended changes to improve the code.
6720c3c
to
2736ac1
Compare
https://perconadev.atlassian.net/browse/PS-9760
Along with clang-format checks, CircleCI is now equipped with clang-tidy checks as well, which perform static code analysis on the files modified by a particular PR.
Similar to clang-format checks, the console log of the CircleCI contains the output from the clang-tidy checks, which has 2 parts: