This patch deprecates hasValue and getValue for consistency with
std::optional and llvm::Optional. Note that I've migrated all known
uses of them to has_value and value, respectively.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
How bad would it be just to remove uses of these methods? It'd be nice to avoid the intermediate warning spam that comes along with these.
Comment Actions
Ah, I see the comment says you removed all known uses. What is the removal timeline for these methods?
Comment Actions
I am thinking about 3 months or so to accommodate downstream users and other patches landing nearly at the same time.
Comment Actions
That seems like a huge lead time for something not really heavily used. I'd honestly rather remove it earlier than that, but LGTM for marking it for now.