mirror of
https://github.com/darlinghq/class-dump.git
synced 2024-11-23 04:19:41 +00:00
The _Atomic types don't need ().
This commit is contained in:
parent
af6c3b71db
commit
45b7e017a8
@ -1,7 +1,7 @@
|
||||
### Unreleased
|
||||
|
||||
* Building with the 10.14 SDK.
|
||||
* Fix parse error of _Atomic() types
|
||||
* Fix parse error of _Atomic types. (Thanks to Jacob Bandes-Storch (jtbandes)).
|
||||
* Work around many other parsing errors from blank types:
|
||||
* types like vector_float4 have a blank encoding. (Thank you iTerm2! Open source FTW.)
|
||||
* Swift types have a blank encoding.
|
||||
|
@ -458,16 +458,6 @@ static BOOL debugMerge = NO;
|
||||
case 'O':
|
||||
case 'R':
|
||||
case 'V':
|
||||
if (_subtype == nil) {
|
||||
if (currentName == nil)
|
||||
result = [self formattedStringForSimpleType];
|
||||
else
|
||||
result = [NSString stringWithFormat:@"%@ %@", self.formattedStringForSimpleType, currentName];
|
||||
} else
|
||||
result = [NSString stringWithFormat:@"%@ %@",
|
||||
self.formattedStringForSimpleType, [_subtype formattedString:currentName formatter:typeFormatter level:level]];
|
||||
break;
|
||||
|
||||
case 'A':
|
||||
if (_subtype == nil) {
|
||||
if (currentName == nil)
|
||||
@ -476,7 +466,7 @@ static BOOL debugMerge = NO;
|
||||
result = [NSString stringWithFormat:@"%@ %@", self.formattedStringForSimpleType, currentName];
|
||||
} else
|
||||
result = [NSString stringWithFormat:@"%@ %@",
|
||||
self.formattedStringForSimpleType, currentName];
|
||||
self.formattedStringForSimpleType, [_subtype formattedString:currentName formatter:typeFormatter level:level]];
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -539,7 +529,7 @@ static BOOL debugMerge = NO;
|
||||
case 'O': return @"bycopy";
|
||||
case 'R': return @"byref";
|
||||
case 'V': return @"oneway";
|
||||
case 'A': return [NSString stringWithFormat:@"_Atomic(%@)", _subtype.formattedStringForSimpleType];
|
||||
case 'A': return @"_Atomic";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user