projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70a921
)
Add ObjCMethodDecl::isThisDeclarationADefinition().
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 29 Jul 2009 23:41:26 +0000
(23:41 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Wed, 29 Jul 2009 23:41:26 +0000
(23:41 +0000)
llvm-svn: 77544
clang/include/clang/AST/DeclObjC.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/DeclObjC.h
b/clang/include/clang/AST/DeclObjC.h
index
2a1b826
..
5f0102a
100644
(file)
--- 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; }