DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Added test for type_traits

Open Przemog1 opened this issue 1 month ago • 1 comments

Issues I encountered:

  • __is_signed returns false for float types, but it should return true.
  • __is_unsigned returns true for enum types, but I think it should return false.
  • I'm not sure how to implement tests for __is_final, since there is no final keyword.
  • I'm not sure how to implement tests for __is_integral, since there is no constexpr.

Status: // * __is_class - DONE // * __is_final - HOW? // * __is_literal - HOW? // * __is_arithmetic - DONE // * __is_scalar - DONE // * __is_floating_point - DONE // * __is_integral - DONE // * __is_complete_type- DONE // * __is_void - DONE // * __is_array - DONE // * __is_const - DONE // * __is_signed - DONE // * __is_unsigned - DONE // * __is_same - DONE // * __is_array - DONE // * __is_empty - DONE

CC: @llvm-beanz

Przemog1 avatar Dec 03 '25 12:12 Przemog1

@microsoft-github-policy-service agree company="Devsh Graphics Programming Sp. z O.O."

Przemog1 avatar Dec 03 '25 15:12 Przemog1