Version 1.0.0-rc10 is now available.  There are a number of changes:

* Multicharacter command-line options now begin with -- and contain -
  rather than _.  For those who are used to the old options, they are
  still all suported, by replacing the initial - by -- and any _s by -.

* In previous versions of Coccinelle, it was possible to attach a position
  variable to any token, using @.  Now it is possible to do the same with
  some other kinds of metavariables: expressions, declarations,
  initialisers, types, and statements.  These metavariables transparently
  move upwards to match the innermost enclosing term of the corresponding
  kind.  A position metavariable then matches the position of that other
  kind of metavariable andnot of the token.  This is best illustrated by
  an example:

     f(...)@p1@E@p2
  p1 is the position of the ).  E is the complete function call
  expression.  p2 is the position of the complete function call
  expression.  The ability to attach more metavariable kinds in this way
  may be added in the future.

* For a list metavariable, python code now receives an object containing
  a list of the strings representing the elements.  For example, if es is
  an expression list, then accessing es in python gives a string
  representing the complete list of expressions, and accessing es[i] gives
  the string for the ith element, starting at 0.  The list of elements is
  actually stored in es.elements, which can be used to get the number of
  expressions in the list.  (This could also have been obtained from the
  SmPL expression list metavariable declaration itself, by saying
  expression list[n] es.

* For expressions and identifiers, python code now receives ordinary
  strings, rather than objects that only contain strings.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to