Author: Adam Czachorowski Date: 2021-01-08T17:24:47+01:00 New Revision: 2e1bb7940a4ddc847cebd25092d10f40866a7fad
URL: https://github.com/llvm/llvm-project/commit/2e1bb7940a4ddc847cebd25092d10f40866a7fad DIFF: https://github.com/llvm/llvm-project/commit/2e1bb7940a4ddc847cebd25092d10f40866a7fad.diff LOG: [clangd] Add missing "override" to fix the build. Follow-up to d4af86581e80ef0f7a6f4a4fff1c97260a726e71 Differential Revision: https://reviews.llvm.org/D94314 Added: Modified: clang-tools-extra/clangd/AST.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/AST.cpp b/clang-tools-extra/clangd/AST.cpp index 16298f3e0326..8af4cbb19a3d 100644 --- a/clang-tools-extra/clangd/AST.cpp +++ b/clang-tools-extra/clangd/AST.cpp @@ -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); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits