Make FunctionDecl::isDefined non-virtual, NFC
authorReid Kleckner <rnk@google.com>
Tue, 31 Mar 2020 16:01:06 +0000 (09:01 -0700)
committerReid Kleckner <rnk@google.com>
Tue, 31 Mar 2020 17:12:05 +0000 (10:12 -0700)
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

index 841e24e..2af1189 100644 (file)
@@ -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);
   }