summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-11 00:47:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-11 00:47:15 +0000
commit16211a2cc7d67f1fd0daa23fe30f666d8e8bbd19 (patch)
tree0e6c6f31df61126a92fcdc725ccea108b38e6378
parent9d9a4be5884d91ba849c33e9028e1ef9c2346a87 (diff)
downloadbcm5719-llvm-16211a2cc7d67f1fd0daa23fe30f666d8e8bbd19.tar.gz
bcm5719-llvm-16211a2cc7d67f1fd0daa23fe30f666d8e8bbd19.zip
Add ObjCMethodDecl::getSourceRange.
llvm-svn: 56083
-rw-r--r--clang/include/clang/AST/DeclObjC.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h
index 260acc7e400..34e60e62f36 100644
--- a/clang/include/clang/AST/DeclObjC.h
+++ b/clang/include/clang/AST/DeclObjC.h
@@ -180,6 +180,9 @@ public:
// Location information, modeled after the Stmt API.
SourceLocation getLocStart() const { return getLocation(); }
SourceLocation getLocEnd() const { return EndLoc; }
+ SourceRange getSourceRange() const {
+ return SourceRange(getLocation(), EndLoc);
+ }
NamedDecl *getMethodContext() const { return MethodContext; }
OpenPOWER on IntegriCloud