[clang] [clang-format] allow short function body on a single line (PR #151428)

Lidong Yan via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 3 01:46:42 PDT 2025


================
@@ -532,6 +538,20 @@ class LineJoiner {
       }
       return MergedLines;
     }
+
+    // Previously, UnwrappedLineParser would move the left brace to a new line
----------------
brandb97 wrote:

Thank you for kindly explaining how to write proper comment, I will change it in next version.

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


More information about the cfe-commits mailing list