devel/coccigrep 1.21p1 OpenBSD
semantic grep, based on coccinelle
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, textproc, lang/python
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
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/coccigrep | 1.21p1 |
| FreeBSD | textproc/coccigrep | 1.21 |
| NetBSD | textproc/coccigrep | 1.20nb2 |
| DragonFly | textproc/coccigrep | 1.20_1 |
| GhostBSD | textproc/coccigrep | 1.21 |
Install
Binary package:
pkg_add coccigrep
From the ports tree:
cd /usr/ports/devel/coccigrep && make install
Dependencies
Build dependencies 5
Run dependencies 2
No port depends on this one.