diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-03 20:05:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-03 20:05:46 +0000 |
commit | 207653c37dbe6976c8d16bc0816c7d1faaee51de (patch) | |
tree | dfa9b2fec9b3255a7639854b6e500cda4c59fd09 | |
parent | c476e924d69a3438489f92575670ab6d64ed06c4 (diff) |
Minor copy-edits to clang::fallthrough attribute documentation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156094 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LanguageExtensions.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/LanguageExtensions.html b/docs/LanguageExtensions.html index 0952fa0469..1d57007897 100644 --- a/docs/LanguageExtensions.html +++ b/docs/LanguageExtensions.html @@ -1506,24 +1506,24 @@ with a <tt>__c11_</tt> prefix. The supported operations are:</p> <h2 id="non-standard-attributes">Non-standard C++11 Attributes</h2> <!-- ======================================================================= --> -<p>Clang supports one non-standard C++11 attribute. It resides in <tt>clang</tt> -namespace.</p> +<p>Clang supports one non-standard C++11 attribute. It resides in the +<tt>clang</tt> attribute namespace.</p> <!-- ======================================================================= --> <h3 id="clang__fallthrough">The <tt>clang::fallthrough</tt> attribute</h3> <!-- ======================================================================= --> -<p>The <tt>clang::fallthrough</tt> attribute is used along with -<tt>-Wimplicit-fallthrough</tt> diagnostic to annotate intentional fall-through -between switch labels. It can only be applied to a null statement placed in a +<p>The <tt>clang::fallthrough</tt> attribute is used along with the +<tt>-Wimplicit-fallthrough</tt> argument to annotate intentional fall-through +between switch labels. It can only be applied to a null statement placed at a point of execution between any statement and the next switch label. It is common to mark these places with a specific comment, but this attribute is meant to replace comments with a more strict annotation, which can be checked by the compiler. This attribute doesn't change semantics of the code and can be used -wherever an intended fall-through occurs, but it is designed to mimic -control-flow statements like <tt>break;</tt> so it can be placed in most places -where <tt>break;</tt> can, but only if there are no statements on execution path -between it and the next switch label.</p> +wherever an intended fall-through occurs. It is designed to mimic +control-flow statements like <tt>break;</tt>, so it can be placed in most places +where <tt>break;</tt> can, but only if there are no statements on the execution +path between it and the next switch label.</p> <p>Here is an example:</p> <pre> // compile with -Wimplicit-fallthrough |