File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -743,6 +743,8 @@ class AvailableAttr : public DeclAttribute {
743
743
llvm::VersionTuple Obsoleted
744
744
= llvm::VersionTuple());
745
745
746
+ AvailableAttr *clone (ASTContext &C, bool implicit) const ;
747
+
746
748
static bool classof (const DeclAttribute *DA) {
747
749
return DA->getKind () == DAK_Available;
748
750
}
Original file line number Diff line number Diff line change @@ -1480,6 +1480,20 @@ bool AvailableAttr::isActivePlatform(const ASTContext &ctx) const {
1480
1480
return isPlatformActive (Platform, ctx.LangOpts );
1481
1481
}
1482
1482
1483
+ AvailableAttr *AvailableAttr::clone (ASTContext &C, bool implicit) const {
1484
+ return new (C) AvailableAttr (implicit ? SourceLoc () : AtLoc,
1485
+ implicit ? SourceRange () : getRange (),
1486
+ Platform, Message, Rename,
1487
+ Introduced ? *Introduced : llvm::VersionTuple (),
1488
+ implicit ? SourceRange () : IntroducedRange,
1489
+ Deprecated ? *Deprecated : llvm::VersionTuple (),
1490
+ implicit ? SourceRange () : DeprecatedRange,
1491
+ Obsoleted ? *Obsoleted : llvm::VersionTuple (),
1492
+ implicit ? SourceRange () : ObsoletedRange,
1493
+ PlatformAgnostic,
1494
+ implicit);
1495
+ }
1496
+
1483
1497
Optional<OriginallyDefinedInAttr::ActiveVersion>
1484
1498
OriginallyDefinedInAttr::isActivePlatform (const ASTContext &ctx) const {
1485
1499
OriginallyDefinedInAttr::ActiveVersion Result;
You can’t perform that action at this time.
0 commit comments