OSDN Git Service

[clangd] Add missing "override" to fix the build.
authorAdam Czachorowski <adamcz@google.com>
Fri, 8 Jan 2021 16:21:02 +0000 (17:21 +0100)
committerAdam Czachorowski <adamcz@google.com>
Fri, 8 Jan 2021 16:24:47 +0000 (17:24 +0100)
Follow-up to d4af86581e80ef0f7a6f4a4fff1c97260a726e71

Differential Revision: https://reviews.llvm.org/D94314

clang-tools-extra/clangd/AST.cpp

index 16298f3..8af4cbb 100644 (file)
@@ -310,7 +310,7 @@ std::string printType(const QualType QT, const DeclContext &CurContext) {
   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);
     }