Skip to content

Commit 2e1bb79

Browse files
committed
[clangd] Add missing "override" to fix the build.
Follow-up to d4af865 Differential Revision: https://reviews.llvm.org/D94314
1 parent e185b1d commit 2e1bb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/AST.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ std::string printType(const QualType QT, const DeclContext &CurContext) {
310310
public:
311311
PrintCB(const DeclContext *CurContext) : CurContext(CurContext) {}
312312
virtual ~PrintCB() {}
313-
virtual bool isScopeVisible(const DeclContext *DC) const {
313+
virtual bool isScopeVisible(const DeclContext *DC) const override {
314314
return DC->Encloses(CurContext);
315315
}
316316

0 commit comments

Comments
 (0)