Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Improper handling of varargs #173

Closed
dented42 opened this Issue · 2 comments

3 participants

@dented42

appledoc seems misbehave when confronted with methods that take a variable number of arguments. Documentation is generated for the method that takes a variable number of arguments, though it doesn't seem to indicate that it takes a variable number of arguments in the generated documentation. However the member following the vararg method seems to be ignored by appledoc entirely.

Without varargs:

-(id)initWithBuilders:(FLDataBuilder*)builders; // documentation is generated for this method
@property (readonly) NSUInteger size; // as well as this one

With varargs:

-(id)initWithBuilders:(FLDataBuilder*)builders, ...; // documentation is generated for this method
@property (readonly) NSUInteger size; // but not this one
@tomaz
Owner

Will check this...

@cbscd

I have the same problem!

@tomaz tomaz closed this issue from a commit
@tomaz Fixed var args consuming subsequent method or property. Closes #173.
The problem was in the code that matched termination macros - it consumed everything beyond method, until end of next declaration. In case of var arg methods, termination macros were actually parsed twice. This fix should handle both cases properly.
fbc693b
@tomaz tomaz closed this in fbc693b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.