summaryrefslogtreecommitdiff
path: root/coccinelle/macros.h
Commit message (Collapse)AuthorAgeFilesLines
* treewide: drop "RUN_" from "RUN_WITH_UMASK"Zbigniew Jędrzejewski-Szmek2022-12-131-1/+1
| | | | | | RUN_WITH_UMASK was initially conceived for spawning externals progs with the umask set. But nowadays we use it various syscalls and stuff that doesn't "run" anything, so the "RUN_" prefix has outlived its usefulness.
* basic/list: drop LIST_IS_EMPTYZbigniew Jędrzejewski-Szmek2022-07-021-2/+0
| | | | | | | | | | This was a trivial wrapper that didn't provide any added value. With more complicated structures like strvs, hashmaps, sets, and arrays, it is possible to have an empty container. But in case of a list, the list is empty only when the head is missing. Also, we generally want the positive condition, so we replace many if (!LIST_IS_EMPTY(x)) with just if (x).
* list: drop unnecessary line continuationYu Watanabe2021-12-251-1/+1
| | | | Fixes #21886.
* licensing: add spdx to our .cocci filesZbigniew Jędrzejewski-Szmek2021-10-011-1/+3
| | | | | Since those are chunks of code based on our codebase, it's easiest to use the same license.
* coccinelle: correctly resolve our own macrosFrantisek Sumsal2020-10-091-0/+231
Coccinelle can't do this automagically and requires we supply it respective header files. Unfortunately, the option for this (--macro-file=) can be used only once, so let's create our own macro file by collecting macros needed for the semantic parser to be happy.