[libc-commits] [libc] [libc] Update floating testing infra for MSVC compatibility. (PR #159810)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Sep 19 09:21:57 PDT 2025


================
@@ -134,14 +135,18 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
 #ifdef LIBC_TYPES_HAS_CFLOAT16
     else if constexpr (cpp::is_complex_type_same<T, cfloat16>())
       return matchComplex<float16>();
-#endif
+#endif // LIBC_TYPES_HAS_CFLOAT16
 #ifdef LIBC_TYPES_HAS_CFLOAT128
     else if constexpr (cpp::is_complex_type_same<T, cfloat128>())
       return matchComplex<float128>();
-#endif
+#endif // LIBC_TYPES_HAS_CFLOAT128
+#else  // LIBC_COMPILER_IS_MSVC
+    return true;
+#endif // LIBC_COMPILER_IS_MSVC
   }
 
   void explainError() override {
+#ifndef LIBC_COMPILER_IS_MSVC
     if constexpr (cpp::is_complex_type_same<T, _Complex float>())
----------------
jhuber6 wrote:

Does MSVC reject the `_Complex` type entirely or something?

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


More information about the libc-commits mailing list