diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-06 07:45:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-06 07:45:39 +0000 |
commit | 64cd55a12676cf108f89438dfa7b47b9c1cf0b75 (patch) | |
tree | a98c7369f9bd8b9bbc72dda2d6c30f5c62b56171 /docs/CodingStandards.rst | |
parent | b0eeb124b24174f68fa36324cd28027819e36a27 (diff) | |
download | llvm-64cd55a12676cf108f89438dfa7b47b9c1cf0b75.tar.gz llvm-64cd55a12676cf108f89438dfa7b47b9c1cf0b75.tar.bz2 llvm-64cd55a12676cf108f89438dfa7b47b9c1cf0b75.tar.xz |
Update programmers manual to cover llvm::function_ref, and add a note to the
coding standard suggesting using it instead of the (unavailable) std::function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r-- | docs/CodingStandards.rst | 2 |
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_ |