From afdf137c50f7f96ef865cf007f660dd663a8731f Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 3 Feb 2011 21:57:35 +0000 Subject: [PATCH] Add __has_feature() for each of the type traits git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124820 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LanguageExtensions.html | 43 +++++++++++- lib/Lex/PPMacroExpansion.cpp | 19 ++++++ test/Lexer/has_feature_type_traits.cpp | 91 ++++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 test/Lexer/has_feature_type_traits.cpp diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index 30c85ffcbd..8b6b96f6f2 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -46,13 +46,14 @@ td {
  • C++0x strongly-typed enumerations
  • C++0x trailing return type
  • +
  • Checks for Type Traits
  • Blocks
  • Function Overloading in C
  • Builtin Functions +
  • Target-Specific Extensions