summaryrefslogtreecommitdiff
path: root/coccinelle/not_in_set.cocci
Commit message (Collapse)AuthorAgeFilesLines
* licensing: add spdx to our .cocci filesZbigniew Jędrzejewski-Szmek2021-10-011-0/+1
| | | | | Since those are chunks of code based on our codebase, it's easiest to use the same license.
* coccinelle: limit the # of expressions in in_set/not_in_setFrantisek Sumsal2020-10-041-13/+2
| | | | | | transformations. Otherwise the time and resources to generate all possible permutations is simply unreasonable for running on local machines.
* coccinelle: exclude JsonVariant* from the IN_SET transformationFrantisek Sumsal2019-04-301-33/+13
| | | | | JsonVariant* doesn't work with the current IN_SET implementation, so let's exclude it from the transformation altogether
* coccinelle: fix IN_SET/!IN_SET scripts, and apply some changes it foundLennart Poettering2017-11-291-110/+17
| | | | | | | | IN_SET only works for constant values, hence clarify that. Moreover, we declared a statement "s" we never made use of. Drop it. Also, for both scripts, let's support 10 items. More causes spatch to die with "Stack overflow" for me.
* tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`Andreas Rammhold2017-10-021-0/+147
The included cocci was used to generate the changes. Thanks to @flo-wer for pointing this case out.