From: Daniel Dunbar Date: Thu, 11 Sep 2008 00:47:15 +0000 (+0000) Subject: Add ObjCMethodDecl::getSourceRange. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9776ba0d844cf9f6888e871e3fd246ae782f76f4;p=clang Add ObjCMethodDecl::getSourceRange. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56083 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }