travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

IndentWrappedFunctionNames parameter does not work #56

Closed csbubbles closed 9 years ago

csbubbles commented 9 years ago

Settings file and the results are attached. The project is built from the latest sources.

screen shot 2014-10-02 at 7 22 33 pm

screen shot 2014-10-02 at 7 22 13 pm

travisjeffery commented 9 years ago

thanks, looks like the bundled clang-format binary just needs updated.

travisjeffery commented 9 years ago

@tonyarnold took care of this. Thanks Tony!

csbubbles commented 9 years ago

I have updated the source code from the repo, now I have a question (not sure whether it is the right place for that, though, but anyway). Now the plugin doesn't fail when you run re-formatting with the "IndentWrappedFunctionNames" parameter in its config file which is definitely good. But I expected it would intend everything inside the block between, say, @interface and @end, so I would get automatically:

@interface X ()

    @property A *a;
    @property B *b;

@end

instead of:

@interface X ()

@property A *a;
@property B *b;

@end

Please let me know if I am missing something and using the wrong parameter to get what I need. And what would I need to use then to get the behavior described above?