Lambda captures allow for a lone & capture, so &] needs to be properly handled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
| Paths 
 |  Differential  D70249  
[clang-format] Fixed edge-case with `Style.SpacesInSquareBrackets` with trailing bare `&` lambda capture ClosedPublic Authored by mitchell-stellar on Nov 14 2019, 9:19 AM. 
Details Summary Lambda captures allow for a lone & capture, so &] needs to be properly handled. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Nov 14 2019, 10:01 AM Closed by commit rG4ee70e00b509: [clang-format] Fixed edge-case with SpacesInSquareBrackets with trailing bare… (authored by mitchell-stellar).  ·  Explain WhyNov 14 2019, 10:34 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 229328 clang/lib/Format/TokenAnnotator.cpp
 clang/unittests/Format/FormatTest.cpp
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||