Author: Rahul Joshi Date: 2025-06-07T09:56:24-07:00 New Revision: 6615ec6084f05e609e00025f7f31216710e765cc
URL: https://github.com/llvm/llvm-project/commit/6615ec6084f05e609e00025f7f31216710e765cc DIFF: https://github.com/llvm/llvm-project/commit/6615ec6084f05e609e00025f7f31216710e765cc.diff LOG: [NFC][Clang] Adopt simplified `getTrailingObjects` in ExprObjC (#143254) Added: Modified: clang/include/clang/AST/ExprObjC.h Removed: ################################################################################ diff --git a/clang/include/clang/AST/ExprObjC.h b/clang/include/clang/AST/ExprObjC.h index f87fa85569c44..3d9b3c4585e8a 100644 --- a/clang/include/clang/AST/ExprObjC.h +++ b/clang/include/clang/AST/ExprObjC.h @@ -217,12 +217,10 @@ class ObjCArrayLiteral final SourceRange getSourceRange() const LLVM_READONLY { return Range; } /// Retrieve elements of array of literals. - Expr **getElements() { return getTrailingObjects<Expr *>(); } + Expr **getElements() { return getTrailingObjects(); } /// Retrieve elements of array of literals. - const Expr * const *getElements() const { - return getTrailingObjects<Expr *>(); - } + const Expr *const *getElements() const { return getTrailingObjects(); } /// getNumElements - Return number of elements of objective-c array literal. unsigned getNumElements() const { return NumElements; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits