Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Additionally check for the DEPRECATED_ATTRIBUTE flag that we use inst…

…ead of the __attribute__((deprecated)) method.
  • Loading branch information...
commit 74e2810b1433e9b2bef25e3363aae5295fc8ef77 1 parent ef60534
@bmorton bmorton authored blakewatters committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Parsing/GBObjectiveCParser.m
View
4 Parsing/GBObjectiveCParser.m
@@ -279,7 +279,7 @@ - (BOOL)matchPropertyDefinitionForProvider:(GBMethodsProvider *)provider require
__block BOOL parseAttribute = NO;
__block NSUInteger parenthesisDepth = 0;
[self.tokenizer consumeTo:@";" usingBlock:^(PKToken *token, BOOL *consume, BOOL *stop) {
- if ([token matches:@"__attribute__"]) {
+ if ([token matches:@"__attribute__"] || [token matches:@"DEPRECATED_ATTRIBUTE"]) {
parseAttribute = YES;
parenthesisDepth = 0;
} else if (parseAttribute) {
@@ -499,7 +499,7 @@ - (BOOL)matchMethodDataForProvider:(GBMethodsProvider *)provider from:(NSString
__block NSUInteger parenthesisDepth = 0;
__block NSMutableArray *methodArgs = [NSMutableArray array];
[self.tokenizer consumeTo:end usingBlock:^(PKToken *token, BOOL *consume, BOOL *stop) {
- if ([token matches:@"__attribute__"]) {
+ if ([token matches:@"__attribute__"] || [token matches:@"DEPRECATED_ATTRIBUTE"]) {
parseAttribute = YES;
parenthesisDepth = 0;
return;
Please sign in to comment.
Something went wrong with that request. Please try again.