File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
### Unreleased
2
2
3
3
* Building with the 10.14 SDK.
4
- * Fix parse error of _ Atomic() types
4
+ * Fix parse error of _ Atomic types. (Thanks to Jacob Bandes-Storch (jtbandes)).
5
5
* Work around many other parsing errors from blank types:
6
6
* types like vector_float4 have a blank encoding. (Thank you iTerm2! Open source FTW.)
7
7
* Swift types have a blank encoding.
Original file line number Diff line number Diff line change @@ -458,16 +458,6 @@ - (NSString *)formattedString:(NSString *)previousName formatter:(CDTypeFormatte
458
458
case ' O' :
459
459
case ' R' :
460
460
case ' V' :
461
- if (_subtype == nil ) {
462
- if (currentName == nil )
463
- result = [self formattedStringForSimpleType ];
464
- else
465
- result = [NSString stringWithFormat: @" %@ %@ " , self .formattedStringForSimpleType, currentName];
466
- } else
467
- result = [NSString stringWithFormat: @" %@ %@ " ,
468
- self .formattedStringForSimpleType, [_subtype formattedString: currentName formatter: typeFormatter level: level]];
469
- break ;
470
-
471
461
case ' A' :
472
462
if (_subtype == nil ) {
473
463
if (currentName == nil )
@@ -476,7 +466,7 @@ - (NSString *)formattedString:(NSString *)previousName formatter:(CDTypeFormatte
476
466
result = [NSString stringWithFormat: @" %@ %@ " , self .formattedStringForSimpleType, currentName];
477
467
} else
478
468
result = [NSString stringWithFormat: @" %@ %@ " ,
479
- self .formattedStringForSimpleType, currentName];
469
+ self .formattedStringForSimpleType, [_subtype formattedString: currentName formatter: typeFormatter level: level] ];
480
470
break ;
481
471
482
472
default :
@@ -539,7 +529,7 @@ - (NSString *)formattedStringForSimpleType;
539
529
case ' O' : return @" bycopy" ;
540
530
case ' R' : return @" byref" ;
541
531
case ' V' : return @" oneway" ;
542
- case ' A' : return [ NSString stringWithFormat: @" _Atomic( %@ ) " , _subtype.formattedStringForSimpleType] ;
532
+ case ' A' : return @" _Atomic" ;
543
533
default :
544
534
break ;
545
535
}
You can’t perform that action at this time.
0 commit comments