Found this while fixing another unrelated radar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57904
91177308-0d34-0410-b5e6-
96231b3b80d8
MatchRHSPunctuation(tok::r_paren, LParenLoc);
}
}
- RParenLoc = ConsumeParen();
+ if (Tok.is(tok::r_paren))
+ RParenLoc = ConsumeParen();
return Ty;
}
--- /dev/null
+// RUN: clang -fsyntax-only -verify %s
+
+@class NSString, NSArray;
+
+@protocol ISyncSessionCallback
+- (oneway void)clientWithId:(bycopy NSString *)clientId
+ canBeginSyncingPlanWithId:(bycopy NSString *)planId
+ syncModes:(bycopy NSArray /* ISDSyncState */ *)syncModes
+ entities:(bycopy NSArray /* ISDEntity */ *)entities
+ truthPullers:(bycopy NSDictionary /* NSString -> [NSString] */ *)truthPullers; // expected-error{{expected ')'}} expected-error{{to match this '('}}
+@end
+