]> granicus.if.org Git - clang/commitdiff
Make it clear in Decl::hasBody that it can return true on redeclarations.
authorManuel Klimek <klimek@google.com>
Thu, 13 Jun 2013 09:05:19 +0000 (09:05 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 13 Jun 2013 09:05:19 +0000 (09:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183896 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index b6614b5601ab275a4b46f11c5004a8b2c8fa2403..b0cb34ba8f82ae100bb58c5e9a8a765fa3aa39e2 100644 (file)
@@ -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.