summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/has_extension.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for has_feature(cxx_alignof) and has_feature(c_alignof).Nico Weber2014-12-031-0/+8
| | | | | | | r142020 added support for has_feature(cxx_alignas). This does the same for alignof. llvm-svn: 223186
* Switch C compilations to C11 by default.Richard Smith2014-10-201-2/+2
| | | | | | | | This is long-since overdue, and matches GCC 5.0. This should also be backwards-compatible, because we already supported all of C11 as an extension in C99 mode. llvm-svn: 220244
* Accept __has_feature(__feature__) as a synonym for __has_feature(feature) (andRichard Smith2012-02-251-0/+6
| | | | | | likewise for __has_extension). Patch by Jonathan Sauer! llvm-svn: 151445
* Add c_alignas and cxx_alignas featuresPeter Collingbourne2011-10-141-0/+8
| | | | llvm-svn: 142020
* Introduce __has_extension macroPeter Collingbourne2011-05-131-0/+30
__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
OpenPOWER on IntegriCloud