From 0226419ba795d16457c9a6aa45c4b89c20d4494b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 17 May 2025 22:31:37 -0700 Subject: [PATCH] [AST] Remove "const" from "const ArrayRef" (NFC) --- clang/include/clang/AST/ExprCXX.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/AST/ExprCXX.h b/clang/include/clang/AST/ExprCXX.h index 9a0c7c3a784e2..6ed049c915481 100644 --- a/clang/include/clang/AST/ExprCXX.h +++ b/clang/include/clang/AST/ExprCXX.h @@ -5129,7 +5129,7 @@ class CXXParenListInitExpr final return getTrailingObjects(NumExprs); } - const ArrayRef getInitExprs() const { + ArrayRef getInitExprs() const { return getTrailingObjects(NumExprs); } @@ -5137,7 +5137,7 @@ class CXXParenListInitExpr final return getTrailingObjects(NumUserSpecifiedExprs); } - const ArrayRef getUserSpecifiedInitExprs() const { + ArrayRef getUserSpecifiedInitExprs() const { return getTrailingObjects(NumUserSpecifiedExprs); }