[patch] add cxx_auto and cxx_for_range to has_extension

Hello,

I just saw that a recent commit add support of "auto type" and "for range" to c++98 as language extension. (r39102: PR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range and auto with an ExtWarn, and produce a -Wc++0x-compat warning in C++98 mode when auto is used as a storage class.)

Shouldn't be this changed reflected in the __has_extension macro like other language extensions ?

I attach a patch to fix this inconsistency.

extension.patch (1.55 KB)

  • cfe-dev
  • cfe-commits

(patches usually go to cfe-commits)