File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ -(void) parseArguments
133133 while ([[tempArgs lastObject ] isEqualToString: @" " ]) {
134134 [tempArgs removeLastObject ];
135135 }
136+
136137 arg.name = [tempArgs lastObject ];
137138
138139 [tempArgs removeLastObject ];
Original file line number Diff line number Diff line change 77//
88
99#import " VVFunctionCommenter.h"
10+ #import " VVArgument.h"
1011
1112@implementation VVFunctionCommenter
1213
@@ -22,6 +23,14 @@ -(void) captureReturnType
2223-(void ) captureParameters
2324{
2425 [self parseArguments ];
26+
27+ // Remove void arg in block
28+ NSArray *tempArray = [NSArray arrayWithArray: self .arguments];
29+ [tempArray enumerateObjectsUsingBlock: ^(VVArgument *arg, NSUInteger idx, BOOL *stop) {
30+ if ([arg.type isEqualToString: @" " ] && [arg.name isEqualToString: @" void" ]) {
31+ [self .arguments removeObject: arg];
32+ }
33+ }];
2534}
2635
2736-(NSString *) document
You can’t perform that action at this time.
0 commit comments