]> granicus.if.org Git - clang/commitdiff
Add ObjCMethodDecl::getSourceRange.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 11 Sep 2008 00:47:15 +0000 (00:47 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 11 Sep 2008 00:47:15 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56083 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 260acc7e40068546b941e1205759cbaefdb32fb4..34e60e62f367153134809d10b5b5052696f03044 100644 (file)
@@ -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; }