[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

Tomáš Slanina via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 4 12:34:58 PST 2025


================
@@ -5977,12 +5977,16 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
       return true;
     }
 
-    // Don't attempt to interpret struct return types as structs.
+    // Don't attempt to interpret record return types as records.
+    // FIXME: Not covered by tests.
----------------
itzexpoexpo wrote:

I've rechecked, and the code is already covered. Removed the comment.

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


More information about the cfe-commits mailing list