From: Manuel Klimek Date: Thu, 13 Jun 2013 09:05:19 +0000 (+0000) Subject: Make it clear in Decl::hasBody that it can return true on redeclarations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a438e68ad7da48e7e4903785e5e96732abcdadfb;p=clang Make it clear in Decl::hasBody that it can return true on redeclarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183896 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index b6614b5601..b0cb34ba8f 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -786,8 +786,10 @@ public: /// top-level Stmt* of that body. Otherwise this method returns null. virtual Stmt* getBody() const { return 0; } - /// \brief Returns true if this Decl represents a declaration for a body of + /// \brief Returns true if this \c Decl represents a declaration for a body of /// code, such as a function or method definition. + /// Note that \c hasBody can also return true if any redeclaration of this + /// \c Decl represents a declaration for a body of code. virtual bool hasBody() const { return getBody() != 0; } /// getBodyRBrace - Gets the right brace of the body, if a body exists.