On Thu, 29 Aug 2019, Denis Efremov wrote: > On 8/29/19 8:10 PM, Denis Efremov wrote: > > This patch adds coccinelle script for detecting !likely and > > !unlikely usage. These notations are confusing. It's better > > to replace !likely(x) with unlikely(!x) and !unlikely(x) with > > likely(!x) for readability. > > I'm not sure that this rule deserves the acceptance. > Just to want to be sure that "!unlikely(x)" and "!likely(x)" > are hard-readable is not only my perception and that they > become more clear in form "likely(!x)" and "unlikely(!x)" too. Is likely/unlikely even useful for anything once it is a subexpression? julia
- Re: [PATCH] scripts: coccinelle: check f... Joe Perches
- Re: [PATCH] scripts: coccinelle: check f... Denis Efremov
- Re: [PATCH] scripts: coccinelle: check f... Julia Lawall
- Re: [PATCH] scripts: coccinelle: check for !... Denis Efremov
- Re: [Cocci] [PATCH] scripts: coccinelle:... Denis Efremov
- Re: [Cocci] [PATCH] scripts: coccinelle: check f... Denis Efremov
- Re: [PATCH] scripts: coccinelle: check for !(un)?lik... Pavel Machek
- Re: [Cocci] [PATCH] scripts: coccinelle: check f... Denis Efremov
- [PATCH v2] scripts: coccinelle: check for !(un)?likely us... Denis Efremov
- Re: [PATCH v2] scripts: coccinelle: check for !(un)?... Denis Efremov
- Re: [PATCH v2] scripts: coccinelle: check for !(... Julia Lawall
- Re: [Cocci] [PATCH v2] scripts: coccinelle: ... Denis Efremov
- Re: [PATCH v2] scripts: coccinelle: chec... Rasmus Villemoes
- Re: [Cocci] [PATCH v2] scripts: coccinelle: check fo... Markus Elfring
- Re: [Cocci] [PATCH v2] scripts: coccinelle: check fo... Markus Elfring
- Re: [PATCH v2] scripts: coccinelle: check for !(un)?... Julia Lawall
- Re: [PATCH v2] scripts: coccinelle: check for !(... Denis Efremov
- Re: [v2] scripts: coccinelle: check for !(un... Markus Elfring
