Index: lldb/.clang-tidy =================================================================== --- lldb/.clang-tidy +++ lldb/.clang-tidy @@ -1,4 +1,4 @@ -Checks: '-readability-identifier-naming,modernize-use-default-member-init,modernize-use-equals-default' +Checks: '-readability-identifier-naming,modernize-use-default-member-init,modernize-use-equals-default,modernize-use-override' InheritParentConfig: true CheckOptions: - key: modernize-use-default-member-init.IgnoreMacros Index: lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp =================================================================== --- lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp +++ lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp @@ -240,7 +240,7 @@ m_delegate->SetImportListener(this); } - virtual ~CompleteTagDeclsScope() { + ~CompleteTagDeclsScope() override { ClangASTImporter::ASTContextMetadataSP to_context_md = importer.GetContextMetadata(m_dst_ctx); Index: lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp =================================================================== --- lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp +++ lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp @@ -193,7 +193,7 @@ m_collection_sp->Initialize(g_platformdarwinkernel_properties); } - virtual ~PlatformDarwinKernelProperties() = default; + ~PlatformDarwinKernelProperties() override = default; FileSpecList GetKextDirectories() const { const uint32_t idx = ePropertyKextDirectories; Index: lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp =================================================================== --- lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -74,7 +74,7 @@ m_collection_sp->Initialize(g_processkdp_properties); } - virtual ~PluginProperties() = default; + ~PluginProperties() override = default; uint64_t GetPacketTimeout() { const uint32_t idx = ePropertyKDPPacketTimeout; @@ -877,7 +877,7 @@ m_option_group.Finalize(); } - ~CommandObjectProcessKDPPacketSend() = default; + ~CommandObjectProcessKDPPacketSend() override = default; bool DoExecute(Args &command, CommandReturnObject &result) override { const size_t argc = command.GetArgumentCount(); @@ -978,7 +978,7 @@ CommandObjectSP(new CommandObjectProcessKDPPacketSend(interpreter))); } - ~CommandObjectProcessKDPPacket() = default; + ~CommandObjectProcessKDPPacket() override = default; }; class CommandObjectMultiwordProcessKDP : public CommandObjectMultiword { @@ -992,7 +992,7 @@ interpreter))); } - ~CommandObjectMultiwordProcessKDP() = default; + ~CommandObjectMultiwordProcessKDP() override = default; }; CommandObject *ProcessKDP::GetPluginCommandObject() { Index: lldb/unittests/API/SBCommandInterpreterTest.cpp =================================================================== --- lldb/unittests/API/SBCommandInterpreterTest.cpp +++ lldb/unittests/API/SBCommandInterpreterTest.cpp @@ -34,7 +34,7 @@ DummyCommand(const char *message) : m_message(message) {} bool DoExecute(SBDebugger dbg, char **command, - SBCommandReturnObject &result) { + SBCommandReturnObject &result) override { result.PutCString(m_message.c_str()); result.SetStatus(eReturnStatusSuccessFinishResult); return result.Succeeded(); Index: lldb/unittests/Interpreter/TestCommandPaths.cpp =================================================================== --- lldb/unittests/Interpreter/TestCommandPaths.cpp +++ lldb/unittests/Interpreter/TestCommandPaths.cpp @@ -51,7 +51,7 @@ } protected: - virtual bool DoExecute(Args &command, CommandReturnObject &result) { + bool DoExecute(Args &command, CommandReturnObject &result) override { result.SetStatus(eReturnStatusSuccessFinishResult); result.AppendMessage("I did nothing"); return true; Index: lldb/unittests/Interpreter/TestOptionValue.cpp =================================================================== --- lldb/unittests/Interpreter/TestOptionValue.cpp +++ lldb/unittests/Interpreter/TestOptionValue.cpp @@ -111,7 +111,7 @@ } private: - lldb::OptionValueSP Clone() const { + lldb::OptionValueSP Clone() const override { return std::make_shared(*this); } Index: lldb/unittests/Target/RemoteAwarePlatformTest.cpp =================================================================== --- lldb/unittests/Target/RemoteAwarePlatformTest.cpp +++ lldb/unittests/Target/RemoteAwarePlatformTest.cpp @@ -37,7 +37,7 @@ const FileSpecList *)); Status ResolveRemoteExecutable( const ModuleSpec &module_spec, lldb::ModuleSP &exe_module_sp, - const FileSpecList *module_search_paths_ptr) /*override*/ { + const FileSpecList *module_search_paths_ptr) override /*override*/ { auto pair = ResolveRemoteExecutable(module_spec, module_search_paths_ptr); exe_module_sp = pair.second; return pair.first;