The _Atomic types don't need ().

This commit is contained in:
Steve Nygard 2019-03-13 04:31:44 -06:00
parent af6c3b71db
commit 45b7e017a8
2 changed files with 3 additions and 13 deletions

View File

@ -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.

View File

@ -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;
}