Update master to build with Xcode 11 beta, macOS 10.15, iOS 13, tvOS 13, and watchOS 6 SDKs

This commit is contained in:
mishal_shah
2019-06-03 22:50:02 -07:00
parent 4b9771c21a
commit 1e38fc3030
56 changed files with 1004 additions and 388 deletions

View File

@@ -1274,9 +1274,10 @@ public:
}
StringRef getObjCSelectorName(const Decl *D, SmallString<64> &Buf) {
// We only vend the selector name for @IBAction methods.
// We only vend the selector name for @IBAction and @IBSegueAction methods.
if (auto FuncD = dyn_cast_or_null<FuncDecl>(D)) {
if (FuncD->getAttrs().hasAttribute<IBActionAttr>())
if (FuncD->getAttrs().hasAttribute<IBActionAttr>() ||
FuncD->getAttrs().hasAttribute<IBSegueActionAttr>())
return FuncD->getObjCSelector().getString(Buf);
}
return StringRef();