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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 31 01:51:40 PDT 2025


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

Something like `Previously` is suitable for a commit message, not for the code comment. If it needs a comment just describe what is happening. The past is irrelevant here.

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


More information about the cfe-commits mailing list