[llvm-branch-commits] [clang] 726de41 - [clang][AST] Add get functions for CXXFoldExpr paren locations.

Balázs Kéri via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 21 05:32:22 PST 2021


Author: Balázs Kéri
Date: 2021-01-21T14:35:42+01:00
New Revision: 726de41e2bfb1d0d65e08f103dcb12810fe99d60

URL: https://github.com/llvm/llvm-project/commit/726de41e2bfb1d0d65e08f103dcb12810fe99d60
DIFF: https://github.com/llvm/llvm-project/commit/726de41e2bfb1d0d65e08f103dcb12810fe99d60.diff

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

Reviewed By: hokein

Differential Revision: https://reviews.llvm.org/D94787

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/ExprCXX.h b/clang/include/clang/AST/ExprCXX.h
index 2656952377b3..fbeeb4004f7d 100644
--- a/clang/include/clang/AST/ExprCXX.h
+++ b/clang/include/clang/AST/ExprCXX.h
@@ -4624,6 +4624,8 @@ class CXXFoldExpr : public Expr {
   /// 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; }
 


        


More information about the llvm-branch-commits mailing list