[llvm] 865ee64 - [NFC] Add missing 'override's
Logan Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 19:53:22 PDT 2020
Author: Logan Smith
Date: 2020-07-20T19:52:49-07:00
New Revision: 865ee64bf80ca833548582476202ec8b70987341
URL: https://github.com/llvm/llvm-project/commit/865ee64bf80ca833548582476202ec8b70987341
DIFF: https://github.com/llvm/llvm-project/commit/865ee64bf80ca833548582476202ec8b70987341.diff
LOG: [NFC] Add missing 'override's
Added:
Modified:
clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
clang/tools/clang-scan-deps/ClangScanDeps.cpp
llvm/include/llvm/Support/CrashRecoveryContext.h
Removed:
################################################################################
diff --git a/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp b/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
index dabcd6aa8f15..b91bf798aa7f 100644
--- a/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
+++ b/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
@@ -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());
}
};
diff --git a/clang/tools/clang-scan-deps/ClangScanDeps.cpp b/clang/tools/clang-scan-deps/ClangScanDeps.cpp
index 91659e76219a..91d2dc23d861 100644
--- a/clang/tools/clang-scan-deps/ClangScanDeps.cpp
+++ b/clang/tools/clang-scan-deps/ClangScanDeps.cpp
@@ -179,12 +179,12 @@ class SingleCommandCompilationDatabase : public tooling::CompilationDatabase {
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};
}
diff --git a/llvm/include/llvm/Support/CrashRecoveryContext.h b/llvm/include/llvm/Support/CrashRecoveryContext.h
index 61a1bd405a4d..1529c197a301 100644
--- a/llvm/include/llvm/Support/CrashRecoveryContext.h
+++ b/llvm/include/llvm/Support/CrashRecoveryContext.h
@@ -181,7 +181,7 @@ class CrashRecoveryContextDestructorCleanup : public
: CrashRecoveryContextCleanupBase<
CrashRecoveryContextDestructorCleanup<T>, T>(context, resource) {}
- virtual void recoverResources() {
+ void recoverResources() override {
this->resource->~T();
}
};
More information about the llvm-commits
mailing list