coccigrep icon indicating copy to clipboard operation
coccigrep copied to clipboard

Macros can cause coccigrep to not find some items

Open cus opened this issue 4 years ago • 0 comments

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 you get no results.

Is this the expected behaviour? Is there anything that can be done to make coccigrep smarter about this?

cus avatar May 24 '20 17:05 cus