]> www.infradead.org Git - users/hch/block.git/commit
coccinelle: Add rules to find str_false_true() replacements
authorHongbo Li <lihongbo22@huawei.com>
Wed, 11 Sep 2024 01:09:19 +0000 (09:09 +0800)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 28 Sep 2024 19:21:50 +0000 (21:21 +0200)
commit8a0236bab4d6f0761f29eae4d55d1ba32c1ecd47
tree91604f81b5417c85edc40e29274980c73f23d6d1
parent716bf84ef39218a56fadaa413f70da008ad85888
coccinelle: Add rules to find str_false_true() replacements

As done with str_true_false(), add checks for str_false_true()
opportunities. A simple test can find over 9 cases currently
exist in the tree.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/api/string_choices.cocci