OpenBSD ports

The devel/coccigrep port

coccigrep-1.21p1 – semantic grep, based on coccinelle

Description

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

WWW: http://home.regit.org/software/coccigrep/
Only for arches
aarch64 aarch64 alpha amd64 amd64 arm arm hppa i386 i386 mips64 mips64 mips64el mips64el powerpc powerpc powerpc64 powerpc64 riscv64 riscv64 sparc64
Categories:
devel lang/python textproc

Library dependencies

Build dependencies

Run dependencies