[NFC] Fix -Wsuggest-override warnings

LLVM, as of 77e0e9e17daf0865620abcd41f692ab0642367c4, now builds with
-Wsuggest-override. Let's clean up the swift sources rather than disable
the warning locally.
This commit is contained in:
David Zarzycki
2020-08-13 06:26:20 -04:00
parent 21b91cd03c
commit 1e940c2c7e
36 changed files with 167 additions and 169 deletions

View File

@@ -1489,7 +1489,7 @@ ProtocolConformanceRef::getCanonicalConformanceRef() const {
struct ProtocolConformanceTraceFormatter
: public UnifiedStatsReporter::TraceFormatter {
void traceName(const void *Entity, raw_ostream &OS) const {
void traceName(const void *Entity, raw_ostream &OS) const override {
if (!Entity)
return;
const ProtocolConformance *C =
@@ -1497,7 +1497,7 @@ struct ProtocolConformanceTraceFormatter
C->printName(OS);
}
void traceLoc(const void *Entity, SourceManager *SM,
clang::SourceManager *CSM, raw_ostream &OS) const {
clang::SourceManager *CSM, raw_ostream &OS) const override {
if (!Entity)
return;
const ProtocolConformance *C =