[clang] [clang-format] Add BreakFunctionDeclarationParameters option (PR #158745)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 16 05:09:54 PDT 2025
================
@@ -2389,6 +2389,20 @@ struct FormatStyle {
/// \version 19
bool BreakFunctionDefinitionParameters;
+ /// If ``true``, clang-format will always break before function declaration
+ /// parameters.
+ /// \code
+ /// true:
+ /// void functionDeclaration(
+ /// int A, int B);
+ ///
+ /// false:
+ /// void functionDeclaration(int A, int B);
+ ///
+ /// \endcode
+ /// \version 22
+ bool BreakFunctionDeclarationParameters;
----------------
mydeveloperday wrote:
I can't quite tell but it feel like true is "AlwaysBreakFunctionDeclarationParameters" because false doesn't feel like NeverBreak... just depends on what is there currently?
https://github.com/llvm/llvm-project/pull/158745
More information about the cfe-commits
mailing list