mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user