[PATCH] D140896: [WIP] Move from llvm::makeArrayRef to ArrayRef deduction guides

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 3 07:52:46 PST 2023


mehdi_amini added inline comments.
Herald added a subscriber: Michael137.


================
Comment at: llvm/include/llvm/ADT/ArrayRef.h:502
+  /// Deduction guide to construct an ArrayRef from a C array.
+  template <typename T, size_t N> ArrayRef(const T (&Arr)[N]) -> ArrayRef<T>;
 
----------------
Can we keep the makeArrayRef functions for now and mark them deprecated?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140896



More information about the cfe-commits mailing list