* c-common.c (warn_logical_not_parentheses): Print fixit hints.
commitc4963714b1e4b9af9ecea64fe0e39a6778a39b33
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Aug 2016 12:48:34 +0000 (25 12:48 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Aug 2016 12:48:34 +0000 (25 12:48 +0000)
tree64f9fab13affc9a9f00a3ad4510b0ea04da7f713
parent5ac3e2dc50be60fdf2937842c09784b3ecd4106b
* c-common.c (warn_logical_not_parentheses): Print fixit hints.
* c-common.h (warn_logical_not_parentheses): Update declaration.

* c-typeck.c (parser_build_binary_op): Pass LHS to
warn_logical_not_parentheses.

* parser.c (cp_parser_binary_expression): Pass LHS to
warn_logical_not_parentheses.

* c-c++-common/Wlogical-not-parentheses-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239756 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wlogical-not-parentheses-2.c [new file with mode: 0644]