From: Argyrios Kyrtzidis Date: Wed, 29 Jul 2009 23:41:26 +0000 (+0000) Subject: Add ObjCMethodDecl::isThisDeclarationADefinition(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66570b230941651245accbc5680b60e904eb993c;p=clang Add ObjCMethodDecl::isThisDeclarationADefinition(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77544 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 2a1b826bad..5f0102a5e2 100644 --- a/include/clang/AST/DeclObjC.h +++ b/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; }