Skip to content

Commit

Permalink
[clang-format] always use a line per constructor initialiser for long…
Browse files Browse the repository at this point in the history
…er lines
  • Loading branch information
phunkyfish committed Apr 19, 2020
1 parent 09174d5 commit e254231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: true
AlignTrailingComments: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
Expand Down
2 changes: 1 addition & 1 deletion docs/CODE_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ When working in a large group, the two most important values are readability and

Conventions can be bent or broken in the interest of making code more readable and maintainable. However, if you submit a patch that contains excessive style conflicts, you may be asked to improve your code before your pull request is reviewed.

In the repository root directory, there is a `.clang-format` file that implements the rules as specified here. You are encouraged to run `clang-format` on any newly created files. It is currently not recommended to do so on preexisting files because all the formatting changes will clutter your commits and pull request.
In the repository root directory, there is a `.clang-format` file that implements the rules as specified here. You are encouraged to run `clang-format` on any newly created files. It is currently not recommended to do so on preexisting files because all the formatting changes will clutter your commits and pull request. Note that the version of `clang-format` needs to be at least verson 9.0.

**[back to top](#table-of-contents)**

Expand Down

0 comments on commit e254231

Please sign in to comment.