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

After str_true_false() has been introduced in the tree,
we can add rules for finding places where str_true_false()
can be used. A simple test can find over 10 locations.

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