Sema: Reject version specs in @available attributes for custom domains.

This commit is contained in:
Allan Shortlidge
2025-01-30 22:21:17 -08:00
parent 5c61a2d53e
commit 1e76f19be9
9 changed files with 62 additions and 31 deletions

View File

@@ -190,6 +190,10 @@ public:
return PlatformKind::none;
}
/// Returns true if availability for this domain can be specified in terms of
/// version ranges.
bool isVersioned() const;
/// Returns true if this domain is considered active in the current
/// compilation context.
bool isActive(const ASTContext &ctx) const;