-
Notifications
You must be signed in to change notification settings - Fork 532
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
[REVIEW] Enable clang tidy on cuML c++ sources #1945
Conversation
…ea-ext-clang-tidy
…ea-ext-clang-tidy
@JohnZed I have resolved the issues and gotten the |
…ea-ext-clang-tidy
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 great! Nice that it moved to style.sh too.
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.
There must be a simpler way to do this check.
…ea-ext-clang-tidy
rerun tests |
Thanks @raydouglass. Seems like this doesn't allow merging without @mike-wendt 's approval too. Can get one @mike-wendt ? |
This PR is adding clang-tidy to cudf and adding the initial checks. Note more checks will be enabled in the future. Relevant PRs: * `rmm`: rapidsai/rmm#857 * `cuml`: rapidsai/cuml#1945 To do list: * [x] Add `.clang-tidy` file * [x] Add python script * [x] Apply `modernize-` changes * [x] Revert `cxxopts` changes * [x] Fixed Python parquet failures * [x] Ignore `cxxopts` file * [x] Ignore the `build/_deps` directories Splitting out the following into a separate PR so we can get the changes merged for 22.02 (#10064): * ~~[ ] Disable `clang-diagnostic-errors/warnings`~~ * ~~[ ] Fix include files being skipped~~ * ~~[ ] Set up CI script~~ * ~~[ ] Clean up python script~~ Authors: - Conor Hoekstra (https://github.com/codereport) Approvers: - Bradley Dice (https://github.com/bdice) - Nghia Truong (https://github.com/ttnghia) - David Wendt (https://github.com/davidwendt) - Mark Harris (https://github.com/harrism) - Vyas Ramasubramani (https://github.com/vyasr) URL: #9860
run-clang-tidy.py
wrapper script to invoke tidy checks on all compilation targets in the compilation database generated by cmakecompile_commands.json
file from cmake, by default.Currently, not yet enabled the checks on .cu source files due to some wierd setup issues I'm facing. Hoping to fix those in the coming days.
@dantegd in order to enable this check from inside
ci/checks/style.sh
, I'll need to have runcmake
before (in order to generate compilation database). But runningcmake
fromstyle.sh
will only cause the errors that are currently happening in PR #1931. Please suggest the right place (and the right way) in our CI to enable this check.