[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 18 03:17:02 PST 2026
================
@@ -3931,6 +3931,16 @@ struct FormatStyle {
/// \version 18
std::vector<std::string> ObjCPropertyAttributeOrder;
+ /// 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
----------------
HazardyKnusperkeks wrote:
```suggestion
/// \version 23
```
It's now 23. :)
https://github.com/llvm/llvm-project/pull/170579
More information about the cfe-commits
mailing list