diff options
author | Paul Hoad <mydeveloperday@gmail.com> | 2019-09-18 19:11:40 +0000 |
---|---|---|
committer | Paul Hoad <mydeveloperday@gmail.com> | 2019-09-18 19:11:40 +0000 |
commit | e6f9f40451ec2d07b202a6cab78230b444a1302f (patch) | |
tree | 85fe06f4ba67518c5b9138acfba57dd0e4836f60 /CMakeLists.txt | |
parent | 82a9c901e43177fb74b2631ffe4f8607a03b7a96 (diff) | |
download | clang-e6f9f40451ec2d07b202a6cab78230b444a1302f.tar.gz |
[clang-format][PR41899] PointerAlignment: Left leads to useless space in lambda intializer expression
Summary:
https://bugs.llvm.org/show_bug.cgi?id=41899
```auto lambda = [&a = a]() { a = 2; };```
is formatted as
```auto lambda = [& a = a]() { a = 2; };```
With an extra space if PointerAlignment is set to Left
> The space "& a" looks strange when there is no type in the lambda's intializer expression. This can be worked around with by setting "PointerAlignment: Right", but ideally "PointerAlignment: Left" would not add a space in this case.
Reviewers: klimek, owenpan, krasimir, timwoj
Reviewed By: klimek
Subscribers: cfe-commits
Tags: #clang-tools-extra, #clang
Differential Revision: https://reviews.llvm.org/D67718
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions