mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[gardening] Use override as appropriate
This commit is contained in:
@@ -149,7 +149,7 @@ public:
|
||||
|
||||
using StreamPrinter::StreamPrinter;
|
||||
|
||||
~AnnotatingPrinter() {
|
||||
~AnnotatingPrinter() override {
|
||||
assert(EntitiesStack.empty());
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ struct SourceTextInfo {
|
||||
std::vector<TextReference> References;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static void initDocGenericParams(const Decl *D, DocEntityInfo &Info) {
|
||||
auto *DC = dyn_cast<DeclContext>(D);
|
||||
@@ -760,7 +760,7 @@ private:
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static bool makeParserAST(CompilerInstance &CI, StringRef Text) {
|
||||
CompilerInvocation Invocation;
|
||||
@@ -894,7 +894,7 @@ public:
|
||||
return false; // skip body.
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static void addParameterEntities(CompilerInstance &CI,
|
||||
SourceTextInfo &IFaceInfo) {
|
||||
@@ -998,7 +998,7 @@ public:
|
||||
SourceDocASTWalker(SourceManager &SM, unsigned BufferID)
|
||||
: SM(SM), BufferID(BufferID) {}
|
||||
|
||||
~SourceDocASTWalker() {
|
||||
~SourceDocASTWalker() override {
|
||||
assert(EntitiesStack.empty());
|
||||
}
|
||||
|
||||
@@ -1055,7 +1055,7 @@ public:
|
||||
return TextRange{ Start, End-Start };
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static bool getSourceTextInfo(CompilerInstance &CI,
|
||||
SourceTextInfo &Info) {
|
||||
|
||||
Reference in New Issue
Block a user