<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61116>61116</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            non-virtual member function marked 'override' hides virtual member function
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          AA1999
      </td>
    </tr>
</table>

<pre>
    While compiling llvm:

```cpp
[303/8867] Building CXX object lib/FuzzMutate/CMakeFiles/LLVMFuzzerCLI.dir/FuzzerCLI.cpp.o
[4762/8861] Building LLDB Lua wrapper
/home/arshia/Desktop/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h:103: Warning 509: Overloaded method lldb::SBCommandReturnObject::PutCString(char const *) effectively ignored,
/home/arshia/Desktop/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h:103: Warning 509: as it is shadowed by lldb::SBCommandReturnObject::PutCString(char const *,int).
[4765/8861] Building LLDB Python wrapper
/home/arshia/Desktop/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h:103: Warning 509: Overloaded method lldb::SBCommandReturnObject::PutCString(char const *) effectively ignored,
/home/arshia/Desktop/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h:103: Warning 509: as it is shadowed by lldb::SBCommandReturnObject::PutCString(char const *,int).
[5351/8861] Building CXX object tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o
FAILED: tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLDB_CONFIGURATION_DEBUG -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/include -I/home/arshia/Desktop/llvm-project/build/include -I/home/arshia/Desktop/llvm-project/llvm/include -I/usr/include/python3.10 -I/home/arshia/Desktop/llvm-project/llvm/../clang/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/../clang/include -I/home/arshia/Desktop/llvm-project/lldb/source -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source -I/usr/include/lua5.3 -isystem /usr/include/libxml2 -O3 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -g  -fno-exceptions -fno-rtti -std=c++17 -MD -MT tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o -MF tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o.d -o tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o -c /home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
In file included from /home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:9:
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h:95:68: error: non-virtual member function marked 'override' hides virtual member function
                                    const char *command_body_text) override;
                                                                   ^
/home/arshia/Desktop/llvm-project/lldb/include/lldb/Interpreter/ScriptInterpreter.h:415:16: note: hidden overloaded virtual function 'lldb_private::ScriptInterpreter::SetWatchpointCommandCallback' declared here: different number of parameters (3 vs 2)
  virtual void SetWatchpointCommandCallback(WatchpointOptions *wp_options,
               ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:114:37: error: too few arguments to function call, expected 3, have 2
            bp_options, data.c_str());
                                    ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h:90:10: note: 'SetBreakpointCommandCallback' declared here
  Status SetBreakpointCommandCallback(BreakpointOptions &bp_options,
         ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:350:30: error: out-of-line definition of 'SetBreakpointCommandCallback' does not match any declaration in 'lldb_private::ScriptInterpreterLua'
Status ScriptInterpreterLua::SetBreakpointCommandCallback(
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
[5354/8861] Building CXX object tools/lldb/source/Plugins/SymbolFile/Breakpad/CMakeFiles/lldbPluginSymbolFileBreakpad.dir/SymbolFileBreakpad.cpp.o
ninja: build stopped: subcommand failed.
[408/4058] cd /home/arshia/Desktop/llvm-project/clang/bindings/python && /usr/...arshia/Desktop/llvm-project/build/lib /usr/bin/python3.10 -m unittest discover
................................................................................................................................
----------------------------------------------------------------------
Ran 128 tests in 2.135s

OK
[411/4058] Building CXX object tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o
FAILED: tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLDB_CONFIGURATION_DEBUG -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/include -I/home/arshia/Desktop/llvm-project/build/include -I/home/arshia/Desktop/llvm-project/llvm/include -I/usr/include/python3.10 -I/home/arshia/Desktop/llvm-project/llvm/../clang/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/../clang/include -I/home/arshia/Desktop/llvm-project/lldb/source -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source -I/usr/include/lua5.3 -isystem /usr/include/libxml2 -O3 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -g  -fno-exceptions -fno-rtti -std=c++17 -MD -MT tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o -MF tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginSc
╭─[arshia-pc] as arshia in ~/Desktop/llvm-project on (main)✘✘✘                                                                                         12:21:07
╰─(ノ˚Д˚)ノ cmake --build build -j4   
[4/3510] Building CXX object tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o
FAILED: tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -DLLDB_CONFIGURATION_DEBUG -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LIBCPP_ENABLE_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua -I/home/arshia/Desktop/llvm-project/lldb/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/include -I/home/arshia/Desktop/llvm-project/build/include -I/home/arshia/Desktop/llvm-project/llvm/include -I/usr/include/python3.10 -I/home/arshia/Desktop/llvm-project/llvm/../clang/include -I/home/arshia/Desktop/llvm-project/build/tools/lldb/../clang/include -I/home/arshia/Desktop/llvm-project/lldb/source -I/home/arshia/Desktop/llvm-project/build/tools/lldb/source -I/usr/include/lua5.3 -isystem /usr/include/libxml2 -O3 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -g  -fno-exceptions -fno-rtti -std=c++17 -MD -MT tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o -MF tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o.d -o tools/lldb/source/Plugins/ScriptInterpreter/Lua/CMakeFiles/lldbPluginScriptInterpreterLua.dir/ScriptInterpreterLua.cpp.o -c /home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
In file included from /home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:9:
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h:95:68: error: non-virtual member function marked 'override' hides virtual member function
                                    const char *command_body_text) override;
                                                                   ^
/home/arshia/Desktop/llvm-project/lldb/include/lldb/Interpreter/ScriptInterpreter.h:415:16: note: hidden overloaded virtual function 'lldb_private::ScriptInterpreter::SetWatchpointCommandCallback' declared here: different number of parameters (3 vs 2)
  virtual void SetWatchpointCommandCallback(WatchpointOptions *wp_options,
               ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:114:37: error: too few arguments to function call, expected 3, have 2
            bp_options, data.c_str());
                                    ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h:90:10: note: 'SetBreakpointCommandCallback' declared here
  Status SetBreakpointCommandCallback(BreakpointOptions &bp_options,
         ^
/home/arshia/Desktop/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp:350:30: error: out-of-line definition of 'SetBreakpointCommandCallback' does not match any declaration in 'lldb_private::ScriptInterpreterLua'
Status ScriptInterpreterLua::SetBreakpointCommandCallback(
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
[7/3510] Building CXX object tools/lldb/source/Plugins/SymbolFile/DWARF/CMakeFiles/lldbPluginSymbolFileDWARF.dir/DWARFASTParser.cpp.o
ninja: build stopped: subcommand failed.   
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsW0tz2zjy_zTwBQUVCYqWePCBemVUf_lRljPKTQUSLQkxCPAPgHKcw3z2LZCSJceO1048m-wOWSmFxKPRLzR-3Sgza8VaAZyheIDi0Qmr3EabszQNkyQ5yTS_P1tshASc66IUUqg1lnJboChFwQgF-9_ToPmXl-WuJR5EQYTopN8_7aF4hAeVkNxPH376hHX2GXKHpcgQnUyqr1_PK8ccIDoZnrNbmAgJFtHJbPbnue8FM5xNO1yY3ejmOy_Ljn5Yrds7pc1y4aPlZrPRAM8qhu8MK0swuwl0stGFX5AZuxEM0ckI7K3TJaITLyApjfY81p_csylULisOh4b0aoroZD4Y6qJgil-Dq4y6rCXrbFCUhkGEohQvmFGekThI_OflFozUjAPHBbiN5rgmF6UoSp-l1XRdVW44d0aoNaL9fMMMzrWyDiOaIppgWK0gd2IL8h6LtdIGOKLDXy0rs1g4LCy2G8b1HXCc3b-DuEOhHKJJ59j28Xdtf3XvNlq15v_fNX8cxeFz5j-KNE5raQ_yWF2Z3Mt3Jau1UL5nnhtRuqlyYEoDDnysmVXs25DkCTSTnkyYVWwXo57tOgpXk3Q6G4-8in4XvvCDr1TWj8yEQnSSS-YtMEB0gMnow814frP8I50vr29upigaBZiM_kj_HC-vLz9ejDAZ-f22HF5eTKYfPl6nN9PLi-VoPPj4AZPR4eXDbDoYfvq0TOfz8bUfM69bLz4u55cfr4dj_-WHXF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