diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-08 12:53:05 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-08 12:53:05 +0200 |
commit | 81b02905b035e7afee46c38186c95434b6d86813 (patch) | |
tree | 4947622b51f5c1b8e380d14c7173ad3d1d835182 /gcc/doc/invoke.texi | |
parent | 7bad794aa005aa3ee52fc9c872051d8346c09a24 (diff) | |
download | gcc-81b02905b035e7afee46c38186c95434b6d86813.zip gcc-81b02905b035e7afee46c38186c95434b6d86813.tar.gz gcc-81b02905b035e7afee46c38186c95434b6d86813.tar.bz2 |
invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment style changes.
* doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
style changes.
* lex.c (fallthrough_comment_p): Extend to handle more common FALLTHRU
comment styles.
* c-c++-common/Wimplicit-fallthrough-23.c (foo): Add further tests.
From-SVN: r240885
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e1a3e5f..65805ba 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -4179,11 +4179,13 @@ should match one of the following regular expressions: @item @code{@@fallthrough@@} -@item @code{[ \t]*FALL(S | |-)?THR(OUGH|U)\.?[ \t]*} +@item @code{lint -fallthrough ?} -@item @code{[ \t]*Fall((s | |-)[Tt]|t)hr(ough|u)\.?[ \t]*} +@item @code{[ \t.!]*(ELSE |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ \t.!]*(-[^\n\r]*)?} -@item @code{[ \t]*fall(s | |-)?thr(ough|u)\.?[ \t]*} +@item @code{[ \t.!]*(Else |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ \t.!]*(-[^\n\r]*)?} + +@item @code{[ \t.!]*([Ee]lse |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ \t.!]*(-[^\n\r]*)?} @end itemize |