Skip to content
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

clang-tidy fixes part 3 #16939

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Sep 26, 2024

Description

Subset of improvements to the code base proposed by the latest version of clang-tidy.

Note to reviewers: The changeset looks deceptively large. Almost all of the change are really just switching from raw C-style arrays to C++ std::arrays.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vyasr vyasr added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 26, 2024
@vyasr vyasr self-assigned this Sep 26, 2024
@vyasr vyasr requested a review from a team as a code owner September 26, 2024 23:41
@vyasr vyasr requested review from bdice and lamarrr September 26, 2024 23:41
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Sep 26, 2024
int64_t shape[ndim] = {5};
int64_t strides[ndim] = {0};
int64_t shape[ndim] = {5}; // NOLINT
int64_t strides[ndim] = {0}; // NOLINT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does NOLINT do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It disables clang-tidy checks on this line. I used it for structs containing raw C-style arrays when the structs were either 1) implementing what seemed like a well-defined protocol or file format (for I/O) or 2) when the structs looked like they could be memcopied over to device.

Copy link
Contributor

@lamarrr lamarrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vyasr
Copy link
Contributor Author

vyasr commented Sep 27, 2024

/merge

@rapids-bot rapids-bot bot merged commit 1f25d7a into rapidsai:branch-24.12 Sep 27, 2024
100 checks passed
@vyasr vyasr deleted the feat/clang_tidy_tests branch September 27, 2024 16:24
copy-pr-bot bot pushed a commit that referenced this pull request Sep 28, 2024
Subset of improvements to the code base proposed by the latest version of clang-tidy.

**Note to reviewers**: The changeset looks deceptively large. Almost all of the change are really just switching from raw C-style arrays to C++ std::arrays.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - David Wendt (https://github.com/davidwendt)
  - Basit Ayantunde (https://github.com/lamarrr)

URL: #16939
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants