]> granicus.if.org Git - clang/commit
Clean up the C++0x __has_feature tests. Specifically:
authorDouglas Gregor <dgregor@apple.com>
Wed, 26 Jan 2011 15:36:03 +0000 (15:36 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 26 Jan 2011 15:36:03 +0000 (15:36 +0000)
commitc78e259a5fafd889f5945bc2c48fea48cb3ef9d0
treebe1c764635889d38ec3a6d0b599f8aa05ab6b90a
parent440a48318c53647d6416bcb1ff1af1452aa5d453
Clean up the C++0x __has_feature tests. Specifically:
  - Don't publicize a C++0x feature through __has_feature if we aren't
    in C++0x mode (even if the feature is available only with a
    warning).
  - "auto" is not implemented well enough for its __has_feature to be
    turned on.
  - Fix the test of C++0x __has_feature to actually test what we're
  trying to test. Searching for the substring "foo" when our options
  are "foo" and "no_foo" doesn't work :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124291 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Overload.h
lib/Lex/PPMacroExpansion.cpp
test/Lexer/has_feature_cxx0x.cpp