From 05de8bc173c217f349f09b143bf5c6f6e82b87ae Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 16 Oct 2007 21:21:26 +0000 Subject: [PATCH] publish location info git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43044 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 0e0bdbb2ce..9a9e7c6057 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -1077,6 +1077,9 @@ public: SourceLocation enc, SourceLocation rp) : Expr(ObjCEncodeExprClass, T), EncType(ET), EncLoc(enc), RParenLoc(rp) {} + SourceLocation getEncLoc() const { return EncLoc; } + SourceLocation getRParenLoc() const { return RParenLoc; } + SourceRange getSourceRange() const { return SourceRange(EncLoc, RParenLoc); } QualType getEncodedType() const { return EncType; } -- 2.50.1