Re: [PATCH -next v3 01/10] coccinelle: Add rules to find str_true_false() replacements

2024-09-27 Thread Hongbo Li
On 2024/9/23 18:24, Julia Lawall wrote: Thanks for testing it. I will see if there is some other way to improve the performance. May be every rules in the same file are executed sequentially cost a lot? Thanks, Hongbo Sent from my iPhone On 23 Sep 2024, at 09:01, Hongbo Li wrote: 

Re: [PATCH -next v3 01/10] coccinelle: Add rules to find str_true_false() replacements

2024-09-23 Thread Julia Lawall
Thanks for testing it. I will see if there is some other way to improve the performance. Sent from my iPhone > On 23 Sep 2024, at 09:01, Hongbo Li wrote: > >  > >> On 2024/9/19 14:25, Julia Lawall wrote: >>> On Wed, 11 Sep 2024, Hongbo Li wrote: >>> After str_true_false() has been introduced

Re: [PATCH -next v3 01/10] coccinelle: Add rules to find str_true_false() replacements

2024-09-23 Thread Hongbo Li
On 2024/9/19 14:25, Julia Lawall wrote: On Wed, 11 Sep 2024, Hongbo Li wrote: 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 --- scripts/c

Re: [PATCH -next v3 01/10] coccinelle: Add rules to find str_true_false() replacements

2024-09-18 Thread Julia Lawall
On Wed, 11 Sep 2024, Hongbo Li wrote: > 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 > --- > scripts/coccinelle/api/string_choices.cocc

[PATCH -next v3 01/10] coccinelle: Add rules to find str_true_false() replacements

2024-09-10 Thread Hongbo Li
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 --- scripts/coccinelle/api/string_choices.cocci | 19 +++ 1 file changed, 19 insertio