[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 7 21:57:53 PST 2025
================
@@ -3936,6 +3936,16 @@ struct FormatStyle {
/// \version 3.7
bool ObjCSpaceAfterProperty;
+ /// Add or remove a space between the '-'/'+' and the return type in
+ /// Objective-C method declarations. i.e
+ /// \code{.objc}
+ /// false: true:
+ ///
+ /// -(void)method vs. - (void)method
+ /// \endcode
+ /// \version 22
+ bool ObjCSpaceBeforeMethodDeclColon;
----------------
owenca wrote:
How about `ObjCSpaceAfterMethodDeclarationPrefix` instead?
https://github.com/llvm/llvm-project/pull/170579
More information about the cfe-commits
mailing list