Merge pull request #59672 from beccadax/what-is-the-protocol-for-generating-sendable

Ignore Sendable conformances in PrintAsClang
This commit is contained in:
Becca Royal-Gordon
2022-06-23 17:15:09 -07:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -439,9 +439,11 @@ public:
bool allRequirementsSatisfied = true;
for (auto proto : PD->getInheritedProtocols()) {
if (printer.shouldInclude(proto)) {
assert(proto->isObjC());
allRequirementsSatisfied &= require(proto);
}
}
if (!allRequirementsSatisfied)
return false;

View File

@@ -25,7 +25,7 @@ import objc_generics
// CHECK-LABEL: @protocol B <A>
// CHECK-NEXT: @end
@objc protocol B : A {}
@objc protocol B : A, Sendable {}
// CHECK-LABEL: @protocol CompletionAndAsync
// CHECK-NEXT: - (void)helloWithCompletion:(void (^ _Nonnull)(BOOL))completion;