Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clang-format style option for space after return type

I would like to find out which of the clang-format style options is responsible for inserting (or removing) the space between return type and method name in Objective-C. I am unable to find this option in the clang-format style guide.

example:

- (id) init;

vs.

- (id)init;
like image 482
Rene Limberger Avatar asked Apr 13 '14 00:04

Rene Limberger


1 Answers

As of 3.7.0, clang-format doesn't support this option.

I have therefore created a patch that adds in an option for this functionality. The patch, and a binary (for Mac), can be found here: https://github.com/ebaker355/clang-format

like image 168
Eric Baker Avatar answered Oct 10 '22 22:10

Eric Baker