[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
Mon Aug 11 07:10:13 PDT 2025


================
@@ -242,13 +242,13 @@ class LineJoiner {
     if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit)
       return 0;
 
-    unsigned Limit =
+    unsigned LimitStripIndent =
----------------
HazardyKnusperkeks wrote:

Can you make this, and `Limit` `const`, since it is now not changed anymore?

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


More information about the cfe-commits mailing list