[SR-2403] Recognize __builtin_{huge_val,inf,nan}() macros #45010
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
c/c++ macros
c interop
Feature: Interoperability with C
compiler
The Swift compiler itself
good first issue
Good for newcomers
Additional Detail from JIRA
md5: c8e64f9c66f50b498cedbe9171dcc5a6
Issue Description:
__builtin_huge_val()
,__builtin_nan("")
, and__builtin_inf()
are often used to define macros that evaluate to IEEE infinity or NaN. We could recognize these patterns and import them as aliases for Double.infinity/nan (or mark them unavailable in favor of the native Swift type properties).The text was updated successfully, but these errors were encountered: