You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been holding off on running and submitting a clang-format because I know there's one big PR pending from @rosecitytransit, and don't want them to be blocked on having to deal with merging all that. Afterwards though, I think some housekeeping in the near future is in order.
I'd like to propose implementing a more complete style as well.
clang-format supports a few styles included out of the box, examples of which can be seen here and here. Of those, I've never been a fan of the GNU indentation style, which Mozilla, WebKit, Microsoft, and of course GNU follow. I also think the project has generally followed K&R style indentation.
That leaves LLVM, Google, and Chromium. Between the latter two which I believe are nearly identical in most ways, I'm less a fan of Chromium splitting up parameters into new lines of their own, but do admit that this makes them easier to read.
MongoDB also has a fantastic .clang-format which may be of interest.
A CONTRIBUTING file could also be made to explain conventions, formatting (and what clang-format version to use), how changes should be submitted, and a reminder of the project's license. For extra credit, something like the Contributor Covenant too.
The text was updated successfully, but these errors were encountered:
I've been holding off on running and submitting a
clang-format
because I know there's one big PR pending from @rosecitytransit, and don't want them to be blocked on having to deal with merging all that. Afterwards though, I think some housekeeping in the near future is in order.I'd like to propose implementing a more complete style as well.
clang-format
supports a few styles included out of the box, examples of which can be seen here and here. Of those, I've never been a fan of the GNU indentation style, which Mozilla, WebKit, Microsoft, and of course GNU follow. I also think the project has generally followed K&R style indentation.That leaves LLVM, Google, and Chromium. Between the latter two which I believe are nearly identical in most ways, I'm less a fan of Chromium splitting up parameters into new lines of their own, but do admit that this makes them easier to read.
MongoDB also has a fantastic
.clang-format
which may be of interest.A CONTRIBUTING file could also be made to explain conventions, formatting (and what clang-format version to use), how changes should be submitted, and a reminder of the project's license. For extra credit, something like the Contributor Covenant too.
The text was updated successfully, but these errors were encountered: