[clang] [clang-format] allow short function body on a single line (PR #151428)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 08:55:20 PDT 2025
================
@@ -14996,6 +14996,29 @@ TEST_F(FormatTest, SplitEmptyFunctionButNotRecord) {
Style);
}
+TEST_F(FormatTest, SplitShortFunction) {
+ FormatStyle Style = getLLVMStyleWithColumns(40);
----------------
brandb97 wrote:
Sure, MergeShortFunctionBody seems like a better name, thanks.
https://github.com/llvm/llvm-project/pull/151428
More information about the cfe-commits
mailing list