[clang] [clang-format] Improve BlockIndent at ColumnLimit (PR #93140)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 00:19:34 PDT 2024


================
@@ -813,10 +858,10 @@ void ContinuationIndenter::addTokenOnCurrentLine(LineState &State, bool DryRun,
       //       caaaaaaaaaaaall(
       //           caaaaaaaaaaaall(
       //               caaaaaaaaaaaaaaaaaaaaaaall(aaaaaaaaaaaaaa, aaaaaaaaa))));
-      Current.FakeLParens.size() > 0 &&
-      Current.FakeLParens.back() > prec::Unknown) {
+      IsNotSimpleFunction(Current)) {
----------------
owenca wrote:

```suggestion
      !IsSimpleFunctionCall(Current)) {
```

https://github.com/llvm/llvm-project/pull/93140


More information about the cfe-commits mailing list