diff options
-rw-r--r-- | include/clang/AST/Expr.h | 3 |
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; } |