aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-16 21:21:26 +0000
committerChris Lattner <sabre@nondot.org>2007-10-16 21:21:26 +0000
commit05de8bc173c217f349f09b143bf5c6f6e82b87ae (patch)
tree446c0eda39647bf6c43c3286655dd0cf3b8208be
parentc5c42f5311b2ef40faefc976f03f408e10697a48 (diff)
publish location info
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43044 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h3
1 files changed, 3 insertions, 0 deletions
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; }