diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-09-21 18:03:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-09-21 18:03:02 +0000 |
commit | b890e9fc6612f67932092c02e850701963a2d27c (patch) | |
tree | 02a4d2583d72968bac849a4dda8d655e01d9a104 /docs | |
parent | 67bf429a6ac94761d7799484b9290945bc5d5def (diff) | |
download | external_llvm-b890e9fc6612f67932092c02e850701963a2d27c.zip external_llvm-b890e9fc6612f67932092c02e850701963a2d27c.tar.gz external_llvm-b890e9fc6612f67932092c02e850701963a2d27c.tar.bz2 |
Add missing 'to' and rephrase an explanation of GCC's assumptions.
Wordsmithing by Matt Beaumont-Gay in response to r164389.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CodingStandards.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst index ecd5626..455ffd5 100644 --- a/docs/CodingStandards.rst +++ b/docs/CodingStandards.rst @@ -830,11 +830,11 @@ off by default but turned on when building LLVM with a version of Clang that supports the warning. A knock-on effect of this stylistic requirement is that when building LLVM with -GCC you may get warnings related "control may reach end of non-void function" +GCC you may get warnings related to "control may reach end of non-void function" if you return from each case of a covered switch-over-enum because GCC assumes -that the enum expression may take any representable value, not just those in -the enumeration. To suppress this warning, use ``llvm_unreachable`` after the -switch. +that the enum expression may take any representable value, not just those of +individual enumerators. To suppress this warning, use ``llvm_unreachable`` after +the switch. Use ``LLVM_DELETED_FUNCTION`` to mark uncallable methods ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |