[cfe-commits] r56083 - /cfe/trunk/include/clang/AST/DeclObjC.h
Daniel Dunbar
daniel at zuster.org
Wed Sep 10 17:47:15 PDT 2008
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; }
More information about the cfe-commits
mailing list