From 753a3245f7231ffd86b8af02e57da6ceb2ec5669 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 31 Mar 2020 09:01:06 -0700 Subject: [PATCH] Make FunctionDecl::isDefined non-virtual, NFC This convenience wrapper was made virtual when it was introduced. I see no overrides and no reason for it to be virtual, so make it non-virtual. --- clang/include/clang/AST/Decl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 841e24e..2af1189 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -2030,7 +2030,7 @@ public: /// declaration to the declaration that is a definition (if there is one). bool isDefined(const FunctionDecl *&Definition) const; - virtual bool isDefined() const { + bool isDefined() const { const FunctionDecl* Definition; return isDefined(Definition); } -- 2.7.4