summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorZoe Carver <z.zoelec2@gmail.com>2019-09-23 15:41:20 +0000
committerZoe Carver <z.zoelec2@gmail.com>2019-09-23 15:41:20 +0000
commit2e9f804150df090d8a7155ac7aaec29ac8e94aa8 (patch)
treefabb873e8c2370a897c8beeed07fb01d72e85222 /docs
parent7222c4d949970f9bc1682c077c2e06eb99fc32bf (diff)
downloadclang-2e9f804150df090d8a7155ac7aaec29ac8e94aa8.tar.gz
Fix __is_signed builtin
Summary: This patch fixes the __is_signed builtin type trait to work with floating point types and enums. Now, the builtin will return true if it is passed a floating point type and false for an enum type. Reviewers: EricWF, rsmith, erichkeane, craig.topper, efriedma Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67897 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LanguageExtensions.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst
index 23c8778113..903d450059 100644
--- a/docs/LanguageExtensions.rst
+++ b/docs/LanguageExtensions.rst
@@ -1161,10 +1161,7 @@ The following type trait primitives are supported by Clang. Those traits marked
* ``__is_sealed`` (Microsoft):
Synonym for ``__is_final``.
* ``__is_signed`` (C++, Embarcadero):
- Note that this currently returns true for enumeration types if the underlying
- type is signed, and returns false for floating-point types, in violation of
- the requirements for ``std::is_signed``. This behavior is likely to change in
- a future version of Clang.
+ Returns false for enumeration types, and returns true for floating-point types. Note, before Clang 10, returned true for enumeration types if the underlying type was signed, and returned false for floating-point types.
* ``__is_standard_layout`` (C++, GNU, Microsoft, Embarcadero)
* ``__is_trivial`` (C++, GNU, Microsoft, Embarcadero)
* ``__is_trivially_assignable`` (C++, GNU, Microsoft)