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-format support #1405

Open
neheb opened this Issue Oct 24, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@neheb
Contributor

neheb commented Oct 24, 2017

README says Allman style. I played a little with clang-format to see if I can get something similar to the current code. Not quite but meh. Real question is, anyone interested in seeing a .clang-format file in the repository? git integration is available as well.

Current .clang-format file:

AlignConsecutiveAssignments: true
AllowShortIfStatementsOnASingleLine: true
BasedOnStyle: LLVM
BreakBeforeBraces: Allman
ColumnLimit: 0
IndentCaseLabels: true
SpaceAfterCStyleCast: true
SpaceBeforeParens: Always
SpacesBeforeTrailingComments: 1

comments welcome.

@jsteube

This comment has been minimized.

Show comment
Hide comment
@jsteube

jsteube Oct 25, 2017

Member

I think it depends on how much it breaks readability. If the changes done are minor I think we can live with a compromise. If you want, try to get as close as possible to original formating. We can then do a comparison and decide.

Member

jsteube commented Oct 25, 2017

I think it depends on how much it breaks readability. If the changes done are minor I think we can live with a compromise. If you want, try to get as close as possible to original formating. We can then do a comparison and decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment