[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 11:17:52 PST 2024


================
@@ -2596,6 +2596,15 @@ template <typename T> using has_sizeof = decltype(sizeof(T));
 template <typename T>
 constexpr bool is_incomplete_v = !is_detected<detail::has_sizeof, T>::value;
 
+//===----------------------------------------------------------------------===//
+//     Extra additions to <variant>
+//===----------------------------------------------------------------------===//
+
+template <class... Ts> struct overloaded : Ts... {
+  using Ts::operator()...;
+};
+template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
+
----------------
kuhar wrote:

https://github.com/llvm/llvm-project/blob/f0f8434afac2d30ac143250377fb6433c68fc0a8/llvm/include/llvm/ADT/STLExtras.h#L1518-L1549

https://github.com/llvm/llvm-project/pull/119740


More information about the llvm-commits mailing list