summaryrefslogtreecommitdiffhomepage
path: root/cparser.1
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-12-09 11:23:32 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2008-12-09 11:23:32 +0100
commit26073a8608126e36f18bd77c0f5ab9aa18d2d955 (patch)
tree1648ad511e32b6a09c1bffc315292db90a469bf9 /cparser.1
parentb3a1d0cd773400c70a6dfc3d3dad0449e777124a (diff)
Add one more case to -Wparentheses: x + y << z.
[r24444]
Diffstat (limited to 'cparser.1')
-rw-r--r--cparser.13
1 files changed, 2 insertions, 1 deletions
diff --git a/cparser.1 b/cparser.1
index c16c232..767f76d 100644
--- a/cparser.1
+++ b/cparser.1
@@ -1,5 +1,5 @@
.\" Please adjust this date whenever revising the manpage.
-.Dd December 7, 2008
+.Dd December 9, 2008
.Dt CPARSER 1
.Sh NAME
.Nm cparser
@@ -185,6 +185,7 @@ Warn if an assignment is used as condition, e.g. if\ (x\ =\ 23).
Warn if && without parentheses is used within ||, e.g. if\ (x\ ||\ y\ &&\ z).
Warn if it there may be confusion which 'if'-statement an 'else'-branch belongs to, e.g. if\ (x)\ if\ (y)\ {}\ else\ {}.
Warn if cascaded comparisons appear which do not have their mathematical meaning, e.g. if\ (23\ <=\ x\ <\ 42).
+Warn if + or - is used as operand of << or >>, e.g. x\ +\ y\ <<\ z.
.It Fl Wredundant-decls
Warn about redundant declarations, i.e. multiple declarations of the same object or static forward declarations which have no use before their definition.
.It Fl Wunreachable-code