Author: ddunbar
Date: Wed Sep 10 19:47:15 2008
New Revision: 56083

URL: http://llvm.org/viewvc/llvm-project?rev=56083&view=rev
Log:
Add ObjCMethodDecl::getSourceRange.

Modified:
    cfe/trunk/include/clang/AST/DeclObjC.h

Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=56083&r1=56082&r2=56083&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Wed Sep 10 19:47:15 2008
@@ -180,6 +180,9 @@
   // 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; }
   


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to