All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] Determination of syntax scopes with SmPL
@ 2015-12-03  9:20 SF Markus Elfring
  0 siblings, 0 replies; only message in thread
From: SF Markus Elfring @ 2015-12-03  9:20 UTC (permalink / raw)
  To: cocci

Hello,

The Coccinelle software takes special care for some details from source files.
These details correspond to specific data structures which are connected with
a syntax for their elements. Each structure member needs usually to be processed
in the context of the involved data type hierarchy.

I find that there are further software development challenges to express
special dependendencies and constraints for advanced source code analysis with
the semantic patch language around safe handling of syntax scopes like
the following.

1. Preprocessor statements
2. Function implementation
3. Global scope

I am looking for a bit more advice around data processing of identifiers
which can appear in ordinary C functions and the statement "#define".
How should an identifier be distinguished from its use within macro text
and at other source code places?

The SmPL ellipsis can be restricted to some degree.
http://coccinelle.lip6.fr/docs/main_grammar008.html#NEST

Does this construct need any extensions to limit a source code search on
a specific scope in the mentioned hierarchy?

Regards,
Markus

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-12-03  9:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-03  9:20 [Cocci] Determination of syntax scopes with SmPL SF Markus Elfring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.