forked from OSchip/llvm-project
[NFC] Add missing 'override's
This commit is contained in:
parent
38fbba4cb8
commit
865ee64bf8
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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};
|
||||
}
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ public:
|
|||
: CrashRecoveryContextCleanupBase<
|
||||
CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {}
|
||||
|
||||
virtual void recoverResources() {
|
||||
void recoverResources() override {
|
||||
this->resource->~T();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue