Add a few more words to autogsdoc known ignore set

This commit is contained in:
rfm 2024-11-19 18:53:32 +00:00
parent 7965acc27b
commit d5da92da73
2 changed files with 25 additions and 12 deletions

View file

@ -1604,7 +1604,7 @@ recheck:
|| [s isEqualToString: @"NS_ENUM"] || [s isEqualToString: @"NS_ENUM"]
|| [s isEqualToString: @"NS_OPTIONS"]) || [s isEqualToString: @"NS_OPTIONS"])
{ {
BOOL isEnum = NO; BOOL isEnum = NO;
NSString *tmp = s; NSString *tmp = s;
if ([s isEqualToString: @"NS_ENUM"] if ([s isEqualToString: @"NS_ENUM"]
@ -1615,20 +1615,28 @@ recheck:
pos++; pos++;
[self parseSpace]; [self parseSpace];
s = [self parseIdentifier]; s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length if (s)
&& buffer[pos] == ',')
{ {
tmp = [tmp stringByAppendingFormat: @"(%@)", s]; tmp = [tmp stringByAppendingFormat: @"(%@", s];
pos++; while ([self parseSpace] < length
[self parseSpace]; && (s = [self parseIdentifier]) != nil)
s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length
&& buffer[pos] == ')')
{ {
isEnum = YES; tmp = [tmp stringByAppendingFormat: @" %@", s];
}
if (pos < length && buffer[pos] == ',')
{
tmp = [tmp stringByAppendingString: @")"];
pos++; pos++;
baseName = s; [self parseSpace];
s = tmp; s = [self parseIdentifier];
if (nil != s && [self parseSpace] < length
&& buffer[pos] == ')')
{
isEnum = YES;
pos++;
baseName = s;
s = tmp;
}
} }
} }
} }

View file

@ -1312,11 +1312,16 @@ main(int argc, char **argv, char **env)
[wm setObject: @"" forKey: @"GS_UNUSED_IVAR"]; [wm setObject: @"" forKey: @"GS_UNUSED_IVAR"];
[wm setObject: @"" forKey: @"GS_ZONE_ATTR"]; [wm setObject: @"" forKey: @"GS_ZONE_ATTR"];
[wm setObject: @"extern" forKey: @"GS_ZONE_SCOPE"]; [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_AUTOMATED_REFCOUNT_UNAVAILABLE"];
[wm setObject: @"" forKey: @"NS_CONSUMED"]; [wm setObject: @"" forKey: @"NS_CONSUMED"];
[wm setObject: @"" forKey: @"NS_CONSUMES_SELF"]; [wm setObject: @"" forKey: @"NS_CONSUMES_SELF"];
[wm setObject: @"" forKey: @"NS_RETURNS_NOT_RETAINED"]; [wm setObject: @"" forKey: @"NS_RETURNS_NOT_RETAINED"];
[wm setObject: @"" forKey: @"NS_RETURNS_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: @"__strong"];
[wm setObject: @"" forKey: @"__weak"]; [wm setObject: @"" forKey: @"__weak"];
[wm setObject: @"" forKey: @"WEAK_ATTRIBUTE"]; [wm setObject: @"" forKey: @"WEAK_ATTRIBUTE"];