From 2e592966f869f561cbaab274f4133edd1db41fa8 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 29 Jul 2009 23:41:26 +0000 Subject: [PATCH] Add ObjCMethodDecl::isThisDeclarationADefinition(). llvm-svn: 77544 --- clang/include/clang/AST/DeclObjC.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index 2a1b826..5f0102a 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/include/clang/AST/DeclObjC.h @@ -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; } -- 2.7.4