[clang] 753a324 - Make FunctionDecl::isDefined non-virtual, NFC

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 10:12:13 PDT 2020


Author: Reid Kleckner
Date: 2020-03-31T10:12:05-07:00
New Revision: 753a3245f7231ffd86b8af02e57da6ceb2ec5669

URL: https://github.com/llvm/llvm-project/commit/753a3245f7231ffd86b8af02e57da6ceb2ec5669
DIFF: https://github.com/llvm/llvm-project/commit/753a3245f7231ffd86b8af02e57da6ceb2ec5669.diff

LOG: 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.

Added: 
    

Modified: 
    clang/include/clang/AST/Decl.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 841e24e527eb..2af1189511a3 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -2030,7 +2030,7 @@ class FunctionDecl : public DeclaratorDecl,
   /// 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);
   }


        


More information about the cfe-commits mailing list