diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-09 21:08:59 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-09 21:08:59 +0000 |
| commit | f6df606f3178a656f4f2886304474acd51cdf61c (patch) | |
| tree | db350e15ba6b95dd16bac0b4689e7f4af3ea9d6f /docs | |
| parent | 53331ec34a9298dce6c86d3c464f939f956a1bb3 (diff) | |
| download | clang-f6df606f3178a656f4f2886304474acd51cdf61c.tar.gz clang-f6df606f3178a656f4f2886304474acd51cdf61c.tar.bz2 clang-f6df606f3178a656f4f2886304474acd51cdf61c.tar.xz | |
PR19698, PR19674: enable __has_feature checks for cxx_generic_lambdas and
cxx_decltype_auto, and fix documentation of cxx_generic_lambdas and
cxx_init_captures to specify the right feature-check name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/LanguageExtensions.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst index 899ce728ba..8a5c9d75da 100644 --- a/docs/LanguageExtensions.rst +++ b/docs/LanguageExtensions.rst @@ -750,16 +750,16 @@ for default initializers in aggregate members is enabled. C++1y generalized lambda capture ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Use ``__has_feature(cxx_init_capture)`` or -``__has_extension(cxx_init_capture)`` to determine if support for +Use ``__has_feature(cxx_init_captures)`` or +``__has_extension(cxx_init_captures)`` to determine if support for lambda captures with explicit initializers is enabled (for instance, ``[n(0)] { return ++n; }``). C++1y generic lambdas ^^^^^^^^^^^^^^^^^^^^^ -Use ``__has_feature(cxx_generic_lambda)`` or -``__has_extension(cxx_generic_lambda)`` to determine if support for generic +Use ``__has_feature(cxx_generic_lambdas)`` or +``__has_extension(cxx_generic_lambdas)`` to determine if support for generic (polymorphic) lambdas is enabled (for instance, ``[] (auto x) { return x + 1; }``). |
