summaryrefslogtreecommitdiffstats
path: root/coccinelle/in_set.cocci (follow)
Commit message (Collapse)AuthorAgeFilesLines
* coccinelle: don't try to use IN_SET() in assert_cc()Frantisek Sumsal2022-05-301-5/+17
| | | | Since assert_cc() requires an integral constant expression.
* 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-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.