[all-commits] [llvm/llvm-project] 387912: [llvm][ADT] Add deduction guides for `MutableArray...
Joe Loser via All-commits
all-commits at lists.llvm.org
Tue Jan 10 12:05:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38791259c1165cedfa313e06dc20e443f1e20634
https://github.com/llvm/llvm-project/commit/38791259c1165cedfa313e06dc20e443f1e20634
Author: Joe Loser <joeloser at fastmail.com>
Date: 2023-01-10 (Tue, 10 Jan 2023)
Changed paths:
M llvm/include/llvm/ADT/ArrayRef.h
M llvm/unittests/ADT/ArrayRefTest.cpp
Log Message:
-----------
[llvm][ADT] Add deduction guides for `MutableArrayRef`
Similar to https://reviews.llvm.org/D140896, this adds deduction guides for the
counterpart of `ArrayRef`: `MutableArrayRef`. The update plan is the following:
1) Add deduction guides for `MutableArrayRef`.
2) Change uses in-tree from `makeMutableArrayRef` to use deduction guides
3) Mark `makeMutableArrayRef` as deprecated for some time before removing to
give downstream users time to update.
The deduction guides are similar to those provided by the `makeMutableArrayRef`
function templates, except we don't need one explicitly from `MutableArrayRef`.
Differential Revision: https://reviews.llvm.org/D141327
More information about the All-commits
mailing list