Value = FeatureII->getTokenID() == tok::identifier;
else if (II == Ident__has_builtin) {
// Check for a builtin is trivial.
- Value = FeatureII->getBuiltinID() != 0;
+ if (FeatureII->getBuiltinID() != 0) {
+ Value = true;
+ } else {
+ const LangOptions &LangOpts = PP.getLangOpts();
+ StringRef Feature = FeatureII->getName();
+ Value = llvm::StringSwitch<bool>(Feature)
+ .Case("__make_integer_seq", LangOpts.CPlusPlus)
+ .Default(false);
+ }
} else if (II == Ident__has_attribute)
Value = hasAttribute(AttrSyntax::GNU, nullptr, FeatureII,
getTargetInfo(), getLangOpts());
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
+static_assert(__has_builtin(__make_integer_seq), "");
+
template <class T, T... I>
struct Seq {
static constexpr T PackSize = sizeof...(I);