-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fully-automatic clang-format with include reordering #3713
Fully-automatic clang-format with include reordering #3713
Conversation
.clang-format
Outdated
TabWidth: 4 | ||
IncludeCategories: |
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.
This could go in before / be rebased in, doesn't need to be in the automatic commit, since we aren't running clang-format till this point.
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.
Doing this right now.
.clang-format
Outdated
@@ -9,11 +9,28 @@ BinPackParameters: false | |||
BreakBeforeBinaryOperators: All | |||
BreakConstructorInitializers: BeforeColon | |||
ColumnLimit: 99 |
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.
i would add some comment pragmas for clang-tidy nolints
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.
Do you have a pointer handy to some time-tested config? Or a concrete suggestion? Happy to fold that in. (I just don't want to invent an incompatible wheel, not currently needing anything in particular.)
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.
CommentPragmas is a regular expression, can you just match it with a nolint comment? That's quite nice, actually.
98313de
to
c0fea50
Compare
(The 🐍 3.5 • MSVC 2017 • x64 failure is an infrastructure flake, connection timed out. Safe to ignore.) |
0497fd5
to
4b1c3fa
Compare
Description
To be merged after PR #3712.
Suggested changelog entry: