[PATCH] D139779: [Support] Add transformOptional

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 02:08:30 PST 2022


MaskRay added a comment.

Having `llvm::transform` not doing what `std::transform` does appears confusing, so even if the name `transformOptional` may look strange, I'd vote +1 for it...
A distinct name helps future `=> std::optional<T>::transform` migration as well although that will take many years.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139779



More information about the llvm-commits mailing list