Re: preprocess(), external_declaration(), writing a "smart" editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reza Roboubi wrote:
>
> Consider an editor that can do search & replace for all instances of
> 'size', but only when 'size' is a member of 'struct list'.  (Even
> if 'size' is being referenced from inside a macro.)
>
> I've glanced at the source code.  Can you help me find out if sparse is
> right for this?

You can look at dissect.c. There is no documentation, please read the changelog
in http://git.kernel.org/?p=devel/sparse/sparse.git;a=commit;h=c6e90aa8eb9c0b32a771428aff9f2aff2e9bbd9d

->r_member() reports the usage of struct's members, see also test-dissect.c

Oleg.

-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux