diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-05-13 20:54:45 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-05-13 20:54:45 +0000 |
commit | d5d410faa8cfbbf4e2ffc2f8aa470491a77fd843 (patch) | |
tree | 8d64dde93da0eaf4a3677c41cf398417a78abd7e /clang/lib/Sema/SemaDeclCXX.cpp | |
parent | c0b259ad90e416c7186293c8809685d869b7d58b (diff) | |
download | bcm5719-llvm-d5d410faa8cfbbf4e2ffc2f8aa470491a77fd843.tar.gz bcm5719-llvm-d5d410faa8cfbbf4e2ffc2f8aa470491a77fd843.zip |
Introduce __has_extension macro
__has_extension is a function-like macro which takes the same set
of feature identifiers as __has_feature. It evaluates to 1 if the
feature is supported by Clang in the current language (either as a
language extension or a standard language feature) or 0 if not.
At the same time, add support for the C1X feature identifiers
c_generic_selections (renamed from generic_selections) and
c_static_assert, and document them.
Patch by myself and Jean-Daniel Dupas.
llvm-svn: 131308
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
0 files changed, 0 insertions, 0 deletions