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:
@@ -2657,14 +2657,14 @@ const clang::Module* ModuleEntity::getAsClangModule() const {
|
||||
// dependency.
|
||||
|
||||
struct SourceFileTraceFormatter : 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 SourceFile *SF = static_cast<const SourceFile *>(Entity);
|
||||
OS << llvm::sys::path::filename(SF->getFilename());
|
||||
}
|
||||
void traceLoc(const void *Entity, SourceManager *SM,
|
||||
clang::SourceManager *CSM, raw_ostream &OS) const {
|
||||
clang::SourceManager *CSM, raw_ostream &OS) const override {
|
||||
// SourceFiles don't have SourceLocs of their own; they contain them.
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user