coccigrep

semantic grep, based on coccinelle

WWW CVSWeb GITHub
  1. Package version
    coccigrep-1.20p1
  2. Maintainer
    The OpenBSD ports mailing-list

coccigrep is a semantic grep for the C language based on coccinelle.
It can be used to find where a given structure is used in code files.

- find where struct bpf_program is used:
coccigrep -t 'struct bpf_program' *c

- find where bf_len in struct bpf_program is used:
coccigrep -t 'struct bpf_program' -a bf_len *c

- find where bf_len in struct bpf_program is *set*:
coccigrep -t 'struct bpf_program' -a bf_len -o set *c

  • lang/python/3.10
  • devel/py-build,python3
  • devel/py-installer,python3
  • devel/py-setuptools,python3
  • devel/py-wheel,python3

  • devel/coccinelle
  • lang/python/3.10