summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.rst
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-05-06 01:44:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-05-06 01:44:26 +0000
commit36ecb2ee9d5cfd001383d7cf7751d830f7c579d1 (patch)
treea25c18ded5389f992f8323ffb39e2160fee7e1a9 /docs/CodingStandards.rst
parentf3a199b2aec6071529f902a3c5d07556c46a8ae1 (diff)
downloadllvm-36ecb2ee9d5cfd001383d7cf7751d830f7c579d1.tar.gz
llvm-36ecb2ee9d5cfd001383d7cf7751d830f7c579d1.tar.bz2
llvm-36ecb2ee9d5cfd001383d7cf7751d830f7c579d1.tar.xz
Re-commit r208025, reverted in r208030, with a fix for a conformance issue
which GCC detects and Clang does not! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r--docs/CodingStandards.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst
index 0fcca0330f..edbef3ace5 100644
--- a/docs/CodingStandards.rst
+++ b/docs/CodingStandards.rst
@@ -108,6 +108,8 @@ unlikely to be supported by our host compilers.
* Lambdas: N2927_
* But *not* ``std::function``, until Clang implements `MSVC-compatible RTTI`_.
+ In many cases, you may be able to use ``llvm::function_ref`` instead, and it
+ is a superior choice in those cases.
* And *not* lambdas with default arguments.
* ``decltype``: N2343_