]> granicus.if.org Git - clang/commit
Fix __is_signed builtin
authorZoe Carver <z.zoelec2@gmail.com>
Mon, 23 Sep 2019 15:41:20 +0000 (15:41 +0000)
committerZoe Carver <z.zoelec2@gmail.com>
Mon, 23 Sep 2019 15:41:20 +0000 (15:41 +0000)
commit2e9f804150df090d8a7155ac7aaec29ac8e94aa8
treefabb873e8c2370a897c8beeed07fb01d72e85222
parent7222c4d949970f9bc1682c077c2e06eb99fc32bf
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
docs/LanguageExtensions.rst
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/type-traits.cpp