summaryrefslogtreecommitdiff
path: root/coccinelle/in_set.cocci
Commit message (Collapse)AuthorAgeFilesLines
* coccinelle: limit the # of expressions in in_set/not_in_setFrantisek Sumsal2020-10-041-14/+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-34/+17
| | | | | 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-20/+39
| | | | | | | | 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 where possibleAndreas Rammhold2017-10-021-0/+35
In addition to the changes from #6933 this handles cases that could be matched with the included cocci file.