Add ObjCMethodDecl::isThisDeclarationADefinition().
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 29 Jul 2009 23:41:26 +0000 (23:41 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 29 Jul 2009 23:41:26 +0000 (23:41 +0000)
llvm-svn: 77544

clang/include/clang/AST/DeclObjC.h

index 2a1b826..5f0102a 100644 (file)
@@ -255,6 +255,9 @@ public:
   CompoundStmt *getCompoundBody() { return (CompoundStmt*)Body; }
   void setBody(Stmt *B) { Body = B; }
 
+  /// \brief Returns whether this specific method is a definition.
+  bool isThisDeclarationADefinition() const { return Body; }
+
   // Implement isa/cast/dyncast/etc.
   static bool classof(const Decl *D) { return D->getKind() == ObjCMethod; }
   static bool classof(const ObjCMethodDecl *D) { return true; }