@@ -2727,12 +2727,12 @@ void PrintAST::printInherited(const Decl *decl) {
27272727 Printer << " : " ;
27282728
27292729 interleave (TypesToPrint, [&](InheritedEntry inherited) {
2730- if (inherited.isUnchecked )
2730+ if (inherited.isUnchecked () )
27312731 Printer << " @unchecked " ;
2732- if (inherited.isRetroactive &&
2732+ if (inherited.isRetroactive () &&
27332733 !llvm::is_contained (Options.ExcludeAttrList , TAK_retroactive))
27342734 Printer << " @retroactive " ;
2735- if (inherited.isPreconcurrency )
2735+ if (inherited.isPreconcurrency () )
27362736 Printer << " @preconcurrency " ;
27372737
27382738 printTypeLoc (inherited);
@@ -3221,11 +3221,9 @@ static bool usesFeatureRetroactiveAttribute(Decl *decl) {
32213221 if (!ext)
32223222 return false ;
32233223
3224- ArrayRef<InheritedEntry> entries = ext->getInherited ().getEntries ();
3225- return std::find_if (entries.begin (), entries.end (),
3226- [](const InheritedEntry &entry) {
3227- return entry.isRetroactive ;
3228- }) != entries.end ();
3224+ return llvm::any_of (
3225+ ext->getInherited ().getEntries (),
3226+ [](const InheritedEntry &entry) { return entry.isRetroactive (); });
32293227}
32303228
32313229static bool usesBuiltinType (Decl *decl, BuiltinTypeKind kind) {
@@ -3912,7 +3910,7 @@ static bool usesFeaturePreconcurrencyConformances(Decl *decl) {
39123910 auto usesPreconcurrencyConformance = [&](const InheritedTypes &inherited) {
39133911 return llvm::any_of (
39143912 inherited.getEntries (),
3915- [](const InheritedEntry &entry) { return entry.isPreconcurrency ; });
3913+ [](const InheritedEntry &entry) { return entry.isPreconcurrency () ; });
39163914 };
39173915
39183916 if (auto *T = dyn_cast<TypeDecl>(decl))
0 commit comments