Skip to content

Commit ec0a4bb

Browse files
committed
AST: Make the legacy AvailableAttr constructor private.
1 parent 2245df5 commit ec0a4bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/AST/Attr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ class AvailableAttr : public DeclAttribute {
756756
NoAsync,
757757
};
758758

759-
public:
759+
private:
760760
AvailableAttr(SourceLoc AtLoc, SourceRange Range, PlatformKind Platform,
761761
StringRef Message, StringRef Rename,
762762
const llvm::VersionTuple &Introduced,
@@ -767,6 +767,7 @@ class AvailableAttr : public DeclAttribute {
767767
PlatformAgnosticAvailabilityKind PlatformAgnostic,
768768
bool Implicit, bool IsSPI, bool IsForEmbedded = false);
769769

770+
public:
770771
AvailableAttr(SourceLoc AtLoc, SourceRange Range,
771772
const AvailabilityDomain &Domain, Kind Kind, StringRef Message,
772773
StringRef Rename, const llvm::VersionTuple &Introduced,

0 commit comments

Comments
 (0)