[cfe-commits] r77544 - /cfe/trunk/include/clang/AST/DeclObjC.h
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Jul 29 16:41:26 PDT 2009
Author: akirtzidis
Date: Wed Jul 29 18:41:26 2009
New Revision: 77544
URL: http://llvm.org/viewvc/llvm-project?rev=77544&view=rev
Log:
Add ObjCMethodDecl::isThisDeclarationADefinition().
Modified:
cfe/trunk/include/clang/AST/DeclObjC.h
Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=77544&r1=77543&r2=77544&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Wed Jul 29 18:41:26 2009
@@ -255,6 +255,9 @@
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; }
More information about the cfe-commits
mailing list