[NFC] Add missing 'override's

This commit is contained in:
Logan Smith 2020-07-20 19:52:36 -07:00
parent 38fbba4cb8
commit 865ee64bf8
3 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ void MapExtDefNamesConsumer::addIfInMain(const DeclaratorDecl *DD,
class MapExtDefNamesAction : public ASTFrontendAction {
protected:
std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
llvm::StringRef) {
llvm::StringRef) override {
return std::make_unique<MapExtDefNamesConsumer>(CI.getASTContext());
}
};

View File

@ -179,12 +179,12 @@ public:
SingleCommandCompilationDatabase(tooling::CompileCommand Cmd)
: Command(std::move(Cmd)) {}
virtual std::vector<tooling::CompileCommand>
getCompileCommands(StringRef FilePath) const {
std::vector<tooling::CompileCommand>
getCompileCommands(StringRef FilePath) const override {
return {Command};
}
virtual std::vector<tooling::CompileCommand> getAllCompileCommands() const {
std::vector<tooling::CompileCommand> getAllCompileCommands() const override {
return {Command};
}

View File

@ -181,7 +181,7 @@ public:
: CrashRecoveryContextCleanupBase<
CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {}
virtual void recoverResources() {
void recoverResources() override {
this->resource->~T();
}
};