forked from OSchip/llvm-project
[Clang-tools-extra] Mark override a function which overrides a virtual one
Function void run() on line 286 overrides a virtual function on line 92 of clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp. Not marking it override will cause a build failure when we use -Werror (every warning is treated as an error). Reviewed By: kbobyrev (Kirill Bobyrev) Differential Revision: https://reviews.llvm.org/D84794
This commit is contained in:
parent
60c889cf71
commit
8dbe9b2498
|
@ -283,7 +283,7 @@ class Export : public Command {
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void run() {
|
void run() override {
|
||||||
using namespace clang::clangd;
|
using namespace clang::clangd;
|
||||||
// Read input file (as specified in global option)
|
// Read input file (as specified in global option)
|
||||||
auto Buffer = llvm::MemoryBuffer::getFile(IndexLocation);
|
auto Buffer = llvm::MemoryBuffer::getFile(IndexLocation);
|
||||||
|
|
Loading…
Reference in New Issue