-
Notifications
You must be signed in to change notification settings - Fork 932
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
clang-tidy fixes part 3 #16939
Conversation
int64_t shape[ndim] = {5}; | ||
int64_t strides[ndim] = {0}; | ||
int64_t shape[ndim] = {5}; // NOLINT | ||
int64_t strides[ndim] = {0}; // NOLINT |
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.
What does NOLINT
do?
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.
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.
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
/merge |
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
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