linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* preprocess(), external_declaration(),  writing a "smart" editor
@ 2008-02-04 15:07 Reza Roboubi
  0 siblings, 0 replies; 3+ messages in thread
From: Reza Roboubi @ 2008-02-04 15:07 UTC (permalink / raw)
  To: linux-sparse

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'm very interested in writing an open source editor for this.
If this is stupid, please tell me!

I've glanced at the source code.  Can you help me find out if sparse is
right for this?

Thanks a lot.

Reza.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: preprocess(), external_declaration(),  writing a "smart" editor
@ 2008-02-11 17:16 Oleg Nesterov
  2008-02-17 10:25 ` Reza Roboubi
  0 siblings, 1 reply; 3+ messages in thread
From: Oleg Nesterov @ 2008-02-11 17:16 UTC (permalink / raw)
  To: Reza Roboubi; +Cc: linux-sparse

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: preprocess(), external_declaration(),  writing a "smart" editor
  2008-02-11 17:16 Oleg Nesterov
@ 2008-02-17 10:25 ` Reza Roboubi
  0 siblings, 0 replies; 3+ messages in thread
From: Reza Roboubi @ 2008-02-17 10:25 UTC (permalink / raw)
  To: Oleg Nesterov; +Cc: linux-sparse

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

Oleg, this is wonderful!  Together with c2xml and some other tools
it goes a long way to address my questions.

Thank you.

Reza.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-17 10:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-04 15:07 preprocess(), external_declaration(), writing a "smart" editor Reza Roboubi
  -- strict thread matches above, loose matches on Subject: below --
2008-02-11 17:16 Oleg Nesterov
2008-02-17 10:25 ` Reza Roboubi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).