jp4a50 added inline comments.

================
Comment at: clang/lib/Format/ContinuationIndenter.cpp:1132
+         State.NextToken->is(TT_LambdaLBrace) && State.Line &&
+         State.Line->Level != 0)) {
+      return State.FirstIndent;
----------------
Note that we do not apply "OuterScope" behaviour when the line's indentation 
level is 0 to avoid placing a lambda's closing brace at 0 indentation like this:


```
class Foo :
    callback{[] {
}, 
    bar,
    baz} {}
```

In other words, we generally try to apply this rule at function/block scope but 
not otherwise.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146042/new/

https://reviews.llvm.org/D146042

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to