Fixes formatting of reference and pointer variables - #1930
Conversation
There was a problem hiding this comment.
This file contains the only hand-edited changes.
Many of the changes were related to removing obsolete/deprecated features, and updating to the new ones.
Tested using clang-format --dump-config
The rest of the files in this PR are automatically generated via make style
(Note: Reviewing with "Hide whitespace" reveals that nearly every change in this PR is a whitespace change.)
| PointerAlignment: Left | ||
|
|
||
| ReferenceAlignment: Left |
There was a problem hiding this comment.
These two control the placement of T* ptr and T& ref
The DerivePointAligment: false a few lines up says not to use the style found in the file.
jcs15c
left a comment
There was a problem hiding this comment.
Looks good to me! It is indeed mostly whitespace changes.
Changes are almost entirely whitespace changes.
b38d300 to
f30ed92
Compare
| AfterExternBlock: false | ||
| BeforeCatch: true | ||
| BeforeElse: true | ||
| # BeforeLambdaBody: true # available in clang 11 |
There was a problem hiding this comment.
Now that we're past clang@11, do we want to set BraceWrapping/BeforeLambdaBody: true?
If so, we'd check changes like this:
I can see both sides: Lambda curly brace wrapping on a separate line would be more consistent w/ our other choices, but somehow, I've grown used to seeing lambda curly braces at the end of a line.
We can also defer this decision to a follow-up PR if we can't reach a quick consensus.
Summary
*and&for pointers and references next to the type rather than the variableSince this merge will affect all outstanding existing branches, it probably makes sense to merge this close to the upcoming August release.