aboutsummaryrefslogtreecommitdiff
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
commit9776ba0d844cf9f6888e871e3fd246ae782f76f4 (patch)
tree087d0ed8d9d10501499dddddfb5b2e21fe92480b
parente281b4cb3c2f85e10412040b35c2699bc883b716 (diff)
Add ObjCMethodDecl::getSourceRange.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56083 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/DeclObjC.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h
index 260acc7e40..34e60e62f3 100644
--- a/include/clang/AST/DeclObjC.h
+++ b/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; }