Skip to content

Commit

Permalink
Add a few more words to autogsdoc known ignore set
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 19, 2024
1 parent 7965acc commit d5da92d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
32 changes: 20 additions & 12 deletions Tools/AGSParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ - (NSMutableArray*) parseDeclarations
|| [s isEqualToString: @"NS_ENUM"]
|| [s isEqualToString: @"NS_OPTIONS"])
{
BOOL isEnum = NO;
BOOL isEnum = NO;
NSString *tmp = s;

if ([s isEqualToString: @"NS_ENUM"]
Expand All @@ -1615,20 +1615,28 @@ - (NSMutableArray*) parseDeclarations
pos++;
[self parseSpace];
s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length
&& buffer[pos] == ',')
if (s)
{
tmp = [tmp stringByAppendingFormat: @"(%@)", s];
pos++;
[self parseSpace];
s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length
&& buffer[pos] == ')')
tmp = [tmp stringByAppendingFormat: @"(%@", s];
while ([self parseSpace] < length
&& (s = [self parseIdentifier]) != nil)
{
tmp = [tmp stringByAppendingFormat: @" %@", s];
}
if (pos < length && buffer[pos] == ',')
{
isEnum = YES;
tmp = [tmp stringByAppendingString: @")"];
pos++;
baseName = s;
s = tmp;
[self parseSpace];
s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length
&& buffer[pos] == ')')
{
isEnum = YES;
pos++;
baseName = s;
s = tmp;
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions Tools/autogsdoc.m
Original file line number Diff line number Diff line change
Expand Up @@ -1312,11 +1312,16 @@ standard PropertyList format (not the XML format of OS X), using
[wm setObject: @"" forKey: @"GS_UNUSED_IVAR"];
[wm setObject: @"" forKey: @"GS_ZONE_ATTR"];
[wm setObject: @"extern" forKey: @"GS_ZONE_SCOPE"];
[wm setObject: @"" forKey: @"NS_ASSUME_NONNULL_BEGIN"];
[wm setObject: @"" forKey: @"NS_ASSUME_NONNULL_END"];
[wm setObject: @"" forKey: @"NS_AUTOMATED_REFCOUNT_UNAVAILABLE"];
[wm setObject: @"" forKey: @"NS_CONSUMED"];
[wm setObject: @"" forKey: @"NS_CONSUMES_SELF"];
[wm setObject: @"" forKey: @"NS_RETURNS_NOT_RETAINED"];
[wm setObject: @"" forKey: @"NS_RETURNS_RETAINED"];
[wm setObject: @"" forKey: @"_Nonnull"];
[wm setObject: @"" forKey: @"_Null_unspecified"];
[wm setObject: @"" forKey: @"_Nullable"];
[wm setObject: @"" forKey: @"__strong"];
[wm setObject: @"" forKey: @"__weak"];
[wm setObject: @"" forKey: @"WEAK_ATTRIBUTE"];
Expand Down

0 comments on commit d5da92d

Please sign in to comment.