Skip to content
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

Adjust clang-format options #14

Merged
merged 1 commit into from
Aug 30, 2019
Merged

Conversation

olemke
Copy link
Member

@olemke olemke commented Aug 30, 2019

  • BinPackArguments: false, BinPackParameters: false

    Only merge long list of arguments if everything fits on one line, otherwise
    keep every argument on a separate line.
    Better for overall readability since we have lots of functions with
    long argument lists. Especially needed for methods.cc.

  • BreakStringLiterals: false

    Keep WSM descriptions in methods.cc readable even if String literals
    don't fit in 80 chars.

  • ReflowComments: false

    Don't break formatting of long comments (e.g. formulas) which are longer than
    80 chars.

- BinPackArguments: false, BinPackParameters: false

  Only merge long list of arguments if everything fits on one line, otherwise
  keep every argument on a separate line.
  Better for overall readability since we have lots of functions with
  long argument lists. Especially needed for methods.cc.

- BreakStringLiterals: false

  Keep WSM descriptions in methods.cc readable even if String literals
  don't fit in 80 chars.

- ReflowComments: false

  Don't break formatting of long comments (e.g. formulas) which are longer than
  80 chars.
@simonpf simonpf self-assigned this Aug 30, 2019
@simonpf simonpf merged commit e18a3ca into atmtools:master Aug 30, 2019
@olemke olemke deleted the tweak-clang-format branch September 2, 2019 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants