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); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits