summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.rst
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-09-18 14:00:58 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-09-18 14:00:58 +0000
commite3f1459b7d885a50dc4de8eccc869a590eb339b5 (patch)
tree0dd1996d89d4e17dba31b44976c6a6d81407c0b2 /docs/CodingStandards.rst
parent879d90f23cbef7bc61b54ee4f9bbf131aae3503c (diff)
downloadllvm-e3f1459b7d885a50dc4de8eccc869a590eb339b5.tar.gz
llvm-e3f1459b7d885a50dc4de8eccc869a590eb339b5.tar.bz2
llvm-e3f1459b7d885a50dc4de8eccc869a590eb339b5.tar.xz
Coding standards: fix typo: '= deleted' -> '= delete'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r--docs/CodingStandards.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst
index bc58f57cb7..4d16e2a9bd 100644
--- a/docs/CodingStandards.rst
+++ b/docs/CodingStandards.rst
@@ -826,14 +826,14 @@ unimplemented copy constructor and copy assignment operator and make them
private. This would give a compiler error for accessing a private method or a
linker error because it wasn't implemented.
-With C++11, we can mark methods that won't be implemented with ``= deleted``.
+With C++11, we can mark methods that won't be implemented with ``= delete``.
This will trigger a much better error message and tell the compiler that the
method will never be implemented. This enables other checks like
``-Wunused-private-field`` to run correctly on classes that contain these
methods.
To maintain compatibility with C++03, ``LLVM_DELETED_FUNCTION`` should be used
-which will expand to ``= deleted`` if the compiler supports it. These methods
+which will expand to ``= delete`` if the compiler supports it. These methods
should still be declared private. Example of the uncopyable pattern:
.. code-block:: c++