xref: /xnu-12377.41.6/tools/cocci/remove-cassert.cocci (revision bbb1b6f9e71b8cdde6e5cd6f4841f207dee3d828)
1// To apply, at the top of xnu.git:
2// $ spatch --max-width=120 --use-gitgrep --in-place --include-headers --sp-file tools/cocci/remove-cassert.cocci -dir .
3
4@@
5expression E;
6@@
7
8(
9- _CASSERT(E)
10+ static_assert(E)
11)
12