diff options
author | 2024-09-11 09:09:27 +0800 | |
---|---|---|
committer | 2024-09-28 21:23:31 +0200 | |
commit | f584e3752ca7bb1f8849a85816b3c974f1aa67ec (patch) | |
tree | 41a49b4e20e135bff59d35ea3a1ac950433ff9fe /scripts/generate_rust_analyzer.py | |
parent | coccinelle: Add rules to find str_yes_no() replacements (diff) | |
download | linux-rng-f584e3752ca7bb1f8849a85816b3c974f1aa67ec.tar.xz linux-rng-f584e3752ca7bb1f8849a85816b3c974f1aa67ec.zip |
coccinelle: Remove unnecessary parentheses for only one possible change.
The parentheses are only needed if there is a disjunction, ie a
set of possible changes. If there is only one pattern, we can
remove these parentheses. Just like the format:
- x
+ y
not:
(
- x
+ y
)
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions