Skip to content

Macros can cause coccigrep to not find some items #20

@cus

Description

@cus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions