From: Chris Lattner Date: Tue, 16 Oct 2007 21:21:26 +0000 (+0000) Subject: publish location info X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05de8bc173c217f349f09b143bf5c6f6e82b87ae;p=clang publish location info git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43044 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }