[llvm-bugs] [Bug 44517] Stop adding new type traits builtins without adding __has_feature support for them

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 12 10:36:36 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44517

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Per our documentation (see the end of
https://clang.llvm.org/docs/LanguageExtensions.html#type-trait-primitives),
__has_builtin is the right way to detect type traits. __has_feature only
supports detecting old type traits for backwards compatibility reasons.

(Note that GCC also supports __has_builtin as a way to detect __is_same and
friends.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200112/378b18db/attachment.html>


More information about the llvm-bugs mailing list