[gardening] Use override as appropriate

This commit is contained in:
practicalswift
2017-04-20 13:46:31 +02:00
parent a596961187
commit 5b9267b8b4
7 changed files with 22 additions and 22 deletions

View File

@@ -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) {