[Sema] Enable suppression of inferred conformances.

Add the machinery to support suppression of inference of conformance to
protocols that would otherwise be derived automatically.

This commit does not enable any conformances to be suppressed.
This commit is contained in:
Nate Chandler
2024-04-01 16:25:34 -07:00
parent 9cece1b1e1
commit ba467d2bd2
24 changed files with 416 additions and 62 deletions

View File

@@ -3921,6 +3921,8 @@ public:
typeRef = (typeRef << 1) | (inherited.isUnchecked() ? 0x01 : 0x00);
// Encode "preconcurrency" in the low bit.
typeRef = (typeRef << 1) | (inherited.isPreconcurrency() ? 0x01 : 0x00);
// Encode "suppressed" in the next bit.
typeRef = (typeRef << 1) | (inherited.isSuppressed() ? 0x01 : 0x00);
result.push_back(typeRef);
}