From: Douglas Gregor
Date: Wed, 19 Jan 2011 23:15:20 +0000 (+0000)
Subject: Eradicate any mention of C++0x concepts.
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83d7781f9dc869022d48dbabde34dbfbd6f59a17;p=clang
Eradicate any mention of C++0x concepts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123860 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html
index e080aef3c3..879089ed6c 100644
--- a/docs/LanguageExtensions.html
+++ b/docs/LanguageExtensions.html
@@ -385,11 +385,6 @@ attribute parsing with C++0x's square bracket notation is enabled.
Use __has_feature(cxx_deleted_functions) to determine if support for
deleted function definitions (with = delete) is enabled.
-C++ TR concepts
-
-Use __has_feature(cxx_concepts) to determine if support for
-concepts is enabled. clang does not currently implement this feature.
-
C++0x lambdas
Use __has_feature(cxx_lambdas) to determine if support for
@@ -421,8 +416,7 @@ is supported using the auto specifier. If this is disabled,
C++0x variadic templates
Use __has_feature(cxx_variadic_templates) to determine if support
-for templates taking any number of arguments with the ellipsis notation is
-enabled. clang does not yet fully implement this feature.
+for variadic templates is enabled.
C++0x inline namespaces
diff --git a/lib/Lex/PPMacroExpansion.cpp b/lib/Lex/PPMacroExpansion.cpp
index 54e4691392..0bfadad439 100644
--- a/lib/Lex/PPMacroExpansion.cpp
+++ b/lib/Lex/PPMacroExpansion.cpp
@@ -556,7 +556,6 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) {
.Case("ownership_returns", true)
.Case("ownership_takes", true)
.Case("cxx_inline_namespaces", true)
- //.Case("cxx_concepts", false)
//.Case("cxx_lambdas", false)
//.Case("cxx_nullptr", false)
//.Case("cxx_rvalue_references", false)
diff --git a/test/Lexer/has_feature_cxx0x.cpp b/test/Lexer/has_feature_cxx0x.cpp
index 5b0f79834e..dcd46b7514 100644
--- a/test/Lexer/has_feature_cxx0x.cpp
+++ b/test/Lexer/has_feature_cxx0x.cpp
@@ -21,16 +21,6 @@ int no_nullptr();
// CHECK-NO-0X: no_nullptr
-#if __has_feature(cxx_concepts)
-int concepts();
-#else
-int no_concepts();
-#endif
-
-// CHECK-0X: no_concepts
-// CHECK-NO-0X: no_concepts
-
-
#if __has_feature(cxx_decltype)
int has_decltype();
#else