Richard Smith dac3ea4eb3 Add __has_builtin support for builtin function-like type traits.
Summary:
Previously __has_builtin(__builtin_*) would return false for
__builtin_*s that we modeled as keywords rather than as functions
(because they take type arguments). With this patch, all builtins
that are called with function-call-like syntax return true from
__has_builtin (covering __builtin_* and also the __is_* and __has_* type
traits and the handful of similar builtins without such a prefix).

Update the documentation on __has_builtin and on type traits to match.
While doing this I noticed the type trait documentation was out of date
and incomplete; that's fixed here too.

Reviewers: aaron.ballman

Subscribers: jfb, kristina, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66100

llvm-svn: 368785
2019-08-14 02:30:11 +00:00
..
2013-01-28 21:43:46 +00:00
2015-07-30 21:30:00 +00:00
2016-01-27 02:18:28 +00:00
2013-01-28 21:04:29 +00:00
2013-01-26 17:11:39 +00:00
2019-07-25 15:10:56 +00:00
2017-12-14 19:22:41 +00:00
2018-04-06 15:14:32 +00:00
2013-02-09 16:41:47 +00:00
2013-01-28 20:55:54 +00:00
2019-06-18 23:40:17 +00:00
2013-02-09 16:41:47 +00:00
2019-06-18 23:40:17 +00:00
2013-02-09 16:41:47 +00:00
2019-06-18 23:40:17 +00:00