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

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 21 05:27:38 PST 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG726de41e2bfb: [clang][AST] Add get functions for CXXFoldExpr paren locations. (authored by balazske).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94787/new/

https://reviews.llvm.org/D94787

Files:
  clang/include/clang/AST/ExprCXX.h


Index: clang/include/clang/AST/ExprCXX.h
===================================================================
--- clang/include/clang/AST/ExprCXX.h
+++ clang/include/clang/AST/ExprCXX.h
@@ -4624,6 +4624,8 @@
   /// 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; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94787.318169.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210121/b0a0203c/attachment.bin>


More information about the cfe-commits mailing list