[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 19:49:53 PDT 2025
================
@@ -14996,6 +14996,29 @@ TEST_F(FormatTest, SplitEmptyFunctionButNotRecord) {
Style);
}
+TEST_F(FormatTest, SplitShortFunction) {
+ FormatStyle Style = getLLVMStyleWithColumns(40);
----------------
owenca wrote:
We've been consistently using `auto` in place of `FormatStyle` and other types for a few years now. Also, there's no need for `ColumnLimit: 40` here now.
https://github.com/llvm/llvm-project/pull/151428
More information about the cfe-commits
mailing list