-
Notifications
You must be signed in to change notification settings - Fork 915
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
Update developer_guide.md
with new guidance on quoted internal includes
#15238
Update developer_guide.md
with new guidance on quoted internal includes
#15238
Conversation
* We use clang-format for grouping and sorting headers automatically. See the | ||
`cudf/cpp/.clang-format` file for specifics. | ||
* Use `<>` for all includes except for internal headers that are not in the `include/cudf` | ||
directory. In other words, if it is a cuDF internal header (e.g. in the `src` or `test` |
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.
Does this apply to cudf_test
? That means we will need to change all test files to use #include "cudf_test/..."
.
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.
No, because cudf_test
is a library with public headers in include/cudf_test
. Therefore includes of its public headers should use <>
. Moreover, there is a separate regex grouping for cudf_test
in .clang-format.
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.
Added clarification of this (and nvtext) in the guide.
/merge |
Description
Follow up to #15063 to add new guidance for quoting includes of internal headers from
src
paths. Also covers clang-format include grouping.Also fixes a single include that was added with
<>
recently that should be""
. #15063 updated all includes to match the guidance in this PR (changing a lot of<>
to""
for includes fromsrc/...
.Checklist