aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2025-01-08 14:00:50 +0100
committerMarc Poulhiès <dkm@gcc.gnu.org>2025-01-13 11:52:59 +0100
commit686bd4e0bc484f9612038d51d07708ff8a4ff75b (patch)
treeef1b631157fe4cbbd1dd86a31b3d576a8a5e43f8 /gcc/expr.cc
parent34943af17e3ed7963bb8b85757e24b300aa03cce (diff)
downloadgcc-686bd4e0bc484f9612038d51d07708ff8a4ff75b.zip
gcc-686bd4e0bc484f9612038d51d07708ff8a4ff75b.tar.gz
gcc-686bd4e0bc484f9612038d51d07708ff8a4ff75b.tar.bz2
ada: Warn about redundant parentheses inside unary operators
GNAT already emits a style warning when redundant parentheses appear inside logical and short-circuit operators. A similar warning is now emitted for unary operators as well. gcc/ada/ChangeLog: * par-ch4.adb (P_Factor): Warn when the operand of a unary operator doesn't require parentheses.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions