forked from OSchip/llvm-project
Add missing 'to' and rephrase an explanation of GCC's assumptions.
Wordsmithing by Matt Beaumont-Gay in response to r164389. llvm-svn: 164395
This commit is contained in:
parent
10958cae09
commit
f787f171a3
|
@ -830,11 +830,11 @@ off by default but turned on when building LLVM with a version of Clang that
|
||||||
supports the warning.
|
supports the warning.
|
||||||
|
|
||||||
A knock-on effect of this stylistic requirement is that when building LLVM with
|
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
|
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
|
that the enum expression may take any representable value, not just those of
|
||||||
the enumeration. To suppress this warning, use ``llvm_unreachable`` after the
|
individual enumerators. To suppress this warning, use ``llvm_unreachable`` after
|
||||||
switch.
|
the switch.
|
||||||
|
|
||||||
Use ``LLVM_DELETED_FUNCTION`` to mark uncallable methods
|
Use ``LLVM_DELETED_FUNCTION`` to mark uncallable methods
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
Loading…
Reference in New Issue