KEYWORD(__bridge , KEYARC)
KEYWORD(__bridge_transfer , KEYARC)
KEYWORD(__bridge_retained , KEYARC)
+KEYWORD(__bridge_retain , KEYARC)
// Alternate spelling for various tokens. There are GCC extensions in all
// languages, but should not be disabled in strict conformance mode.
Builder.defineMacro("__bridge", "");
Builder.defineMacro("__bridge_transfer", "");
Builder.defineMacro("__bridge_retained", "");
+ Builder.defineMacro("__bridge_retain", "");
}
if (Opts.Static)
} else if (ExprType >= CompoundLiteral &&
(Tok.is(tok::kw___bridge) ||
Tok.is(tok::kw___bridge_transfer) ||
- Tok.is(tok::kw___bridge_retained))) {
+ Tok.is(tok::kw___bridge_retained) ||
+ Tok.is(tok::kw___bridge_retain))) { // FIXME: temporary workaround
// Parse an Objective-C ARC ownership cast expression.
ObjCBridgeCastKind Kind;
if (Tok.is(tok::kw___bridge))
CFTypeRef cf1 = (__bridge_retained CFTypeRef)CreateSomething();
CFStringRef cf2 = (__bridge_retained CFStringRef)CreateNSString();
CFTypeRef cf3 = (__bridge CFTypeRef)CreateSomething();
- CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
+ CFStringRef cf4 = (__bridge CFStringRef)CreateNSString();
+
+ // rdar://problem/9629566 - temporary workaround
+ CFTypeRef cf5 = (__bridge_retain CFTypeRef)CreateSomething();
}
void fixits() {