Commit 726de41e authored by Balázs Kéri's avatar Balázs Kéri
Browse files

[clang][AST] Add get functions for CXXFoldExpr paren locations.

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D94787
parent 070af1b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4624,6 +4624,8 @@ public:
  /// Get the operand that doesn't contain a pack, for a binary fold.
  Expr *getInit() const { return isLeftFold() ? getLHS() : getRHS(); }

  SourceLocation getLParenLoc() const { return LParenLoc; }
  SourceLocation getRParenLoc() const { return RParenLoc; }
  SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
  BinaryOperatorKind getOperator() const { return Opcode; }