[flang-commits] [flang] [flang][cli] Add diagnostic flags to the CLI (PR #142022)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Thu May 29 13:11:16 PDT 2025
================
@@ -58,15 +59,51 @@ constexpr std::array<std::string_view, ITEMS> EnumNames(const char *p) {
return result;
}
+template <typename F, typename T>
+std::optional<T> inline fmap(std::optional<F> x, std::function<T(const F)> f) {
----------------
klausler wrote:
`fmap` isn't conforming with the naming guidelines in our style. And it's not a fully generic fmap that works with other monad-like C++ types.
https://github.com/llvm/llvm-project/pull/142022
More information about the flang-commits
mailing list