From 9776ba0d844cf9f6888e871e3fd246ae782f76f4 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 11 Sep 2008 00:47:15 +0000 Subject: [PATCH] Add ObjCMethodDecl::getSourceRange. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56083 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclObjC.h | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.50.1