@@ -159,7 +159,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
159
159
160
160
void print (const Decl *D) {
161
161
PrettyStackTraceDecl trace (" printing" , D);
162
- visit (const_cast <Decl *>(D));
162
+ ASTVisitor:: visit (const_cast <Decl *>(D));
163
163
}
164
164
165
165
void printAdHocCategory (iterator_range<const ValueDecl * const *> members) {
@@ -194,8 +194,6 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
194
194
}
195
195
196
196
private:
197
- using ASTVisitor::visit;
198
-
199
197
// / Prints a protocol adoption list: <code><NSCoding, NSCopying></code>
200
198
// /
201
199
// / This method filters out non-ObjC protocols, along with the special
@@ -241,7 +239,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
241
239
protocolMembersOptional = VD->getAttrs ().hasAttribute <OptionalAttr>();
242
240
os << (protocolMembersOptional ? " @optional\n " : " @required\n " );
243
241
}
244
- visit (const_cast <ValueDecl*>(VD));
242
+ ASTVisitor:: visit (const_cast <ValueDecl*>(VD));
245
243
}
246
244
}
247
245
@@ -821,7 +819,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
821
819
break ;
822
820
case NullabilityPrintKind::After:
823
821
os << ' ' ;
824
- [[clang::fallthrough]] ;
822
+ LLVM_FALLTHROUGH ;
825
823
case NullabilityPrintKind::Before:
826
824
switch (*kind) {
827
825
case OTK_None:
@@ -1536,7 +1534,7 @@ class ObjCPrinter : private DeclVisitor<ObjCPrinter>,
1536
1534
}
1537
1535
};
1538
1536
1539
- class ReferencedTypeFinder : private TypeVisitor <ReferencedTypeFinder> {
1537
+ class ReferencedTypeFinder : public TypeVisitor <ReferencedTypeFinder> {
1540
1538
friend TypeVisitor;
1541
1539
1542
1540
ModuleDecl &M;
@@ -1782,6 +1780,8 @@ class ModuleWriter {
1782
1780
case EmissionState::Defined:
1783
1781
return true ;
1784
1782
}
1783
+
1784
+ llvm_unreachable (" Unhandled EmissionState in switch." );
1785
1785
}
1786
1786
1787
1787
void forwardDeclare (const NominalTypeDecl *NTD,
0 commit comments