summaryrefslogtreecommitdiff
path: root/t/t5300-pack-object.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-10-01 17:12:08 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-02 13:02:26 +0900
commit9ca356fa8b9843b6565a3620f20c7538c1966c7f (patch)
tree77c597048bc35fbd3bf795e55de5030068aaf9e0 /t/t5300-pack-object.sh
parentGit 2.14.2 (diff)
downloadtgif-9ca356fa8b9843b6565a3620f20c7538c1966c7f.tar.xz
coccinelle: remove parentheses that become unnecessary
Transformations that hide multiplications can end up with an pair of parentheses that is no longer needed. E.g. with a rule like this: @@ expression E; @@ - E * 2 + double(E) ... we might get a patch like this: - x = (a + b) * 2; + x = double((a + b)); Add a pair of parentheses to the preimage side of such rules. Coccinelle will generate patches that remove them if they are present, and it will still match expressions that lack them. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5300-pack-object.sh')
0 files changed, 0 insertions, 0 deletions