Skip to content

Commit 726de41

Browse files
committed
[clang][AST] Add get functions for CXXFoldExpr paren locations.
Reviewed By: hokein Differential Revision: https://reviews.llvm.org/D94787
1 parent 070af1b commit 726de41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎clang/include/clang/AST/ExprCXX.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4624,6 +4624,8 @@ class CXXFoldExpr : public Expr {
46244624
/// Get the operand that doesn't contain a pack, for a binary fold.
46254625
Expr *getInit() const { return isLeftFold() ? getLHS() : getRHS(); }
46264626

4627+
SourceLocation getLParenLoc() const { return LParenLoc; }
4628+
SourceLocation getRParenLoc() const { return RParenLoc; }
46274629
SourceLocation getEllipsisLoc() const { return EllipsisLoc; }
46284630
BinaryOperatorKind getOperator() const { return Opcode; }
46294631

0 commit comments

Comments
 (0)