coccigrep icon indicating copy to clipboard operation
coccigrep copied to clipboard

Semantic grep for the C language based on coccinelle

Results 7 coccigrep issues
Sort by recently updated
recently updated
newest added

If you have this file `x.c`: ``` int f1(Context *ctx) { int y = ctx->member; UNRESOLVED_MACRO return 0; } ``` And then you run `coccigrep -t "Context" -a "member" x.c`...

Same issue as #14 In the radare2 source tree, from folder radare2/libr/core, coccigrep will only output results if I set `-p 2` or higher. It seems to only work reliably...

Thanks for coccigrep! But, first time I see program which have colored output worse than non-colored. For example ``` linux/fs/ext4$ coccigrep -t 'struct posix_acl' -a a_entries -c . ./acl.c: l.45...

Hi, I'm issuing a simple command to look for usages of a given struct field: ``` coccigrep -t -a -o used src/*.[ch] ``` But I'm getting no output. Strangely, if...

It would be nice if macros were expanded before coccigrep process the files, but I can't think of a very convenient solution. For a single file I would do something...

I was working with the file "mp4.c" of VLC [gitweb link](http://git.videolan.org/?p=vlc.git;a=tree;f=modules/demux/mp4;h=2fdf0d84f2b3cabacc32242954b18a13a3ef7204;hb=HEAD) The following: ``` coccigrep -t demux_sys_t -a i_timescale -c -o set mp4.c ``` returns nothing, although line 476, you...

If we have the following code ```c struct test { unsigned long first; unsigned long second; }; const static struct test const_struct = { .first = 42, }; int func(struct...