Currently, method alignment is only supported in Objective-C method calls. It'd be great to have a similar feature for method declarations as well, to get something like:
- (NSDateComponents *) components: (NSUInteger) unitFlags fromDate: (NSDate *) startingDate toDate: (NSDate *) resultDate options: (NSUInteger) opts;
Er, this actually:
Last edit: Daniel Ferreira 2017-06-20
Version 3.0.1 aligns calls and declarations. What version are you using?
I am using 3.0.1, and I just tested it on a "simple" ObjC file and it
worked. The issue was, again, due to class definitions being inside an
extern "C"
block, as I point out here[1].This time, though, my patch didn't solve the issue. There must be some
other check somewhere else that causes them not to be aligned properly
if inside a block.
-- Daniel.
On Wed, Jun 21, 2017 at 10:39 AM, Jim Pattee jimp03@users.sf.net wrote:
Related
Bugs:
#444I tried replying to this thread via an e-mail and it did not show up here. I do not know if this is due to a delay or if it's really so (sorry for my cluelessness about SourceForge).
Regardless, my issue was due to (again) my class definition being inside an
extern "C"
block, which caused the parser to misidentify it as not-a-method-definition.The following patch amends the issue (although probably adds some other issue). Could you think of a solution here?
Last edit: Daniel Ferreira 2017-06-21
Fixed and in Subversion.
Thanks!