[PATCH] D94314: [clangd] Add missing "override" to fix the build.

Adam Czachorowski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 8 08:26:47 PST 2021


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2e1bb7940a4d: [clangd] Add missing "override" to fix the build. (authored by adamcz).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94314/new/

https://reviews.llvm.org/D94314

Files:
  clang-tools-extra/clangd/AST.cpp


Index: clang-tools-extra/clangd/AST.cpp
===================================================================
--- clang-tools-extra/clangd/AST.cpp
+++ clang-tools-extra/clangd/AST.cpp
@@ -310,7 +310,7 @@
   public:
     PrintCB(const DeclContext *CurContext) : CurContext(CurContext) {}
     virtual ~PrintCB() {}
-    virtual bool isScopeVisible(const DeclContext *DC) const {
+    virtual bool isScopeVisible(const DeclContext *DC) const override {
       return DC->Encloses(CurContext);
     }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94314.315412.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210108/08e11400/attachment.bin>


More information about the cfe-commits mailing list