cfed25944b4a0c7dd80c0cd3b31e14fb5d7e173d
[bpt/coccinelle.git] / changes.txt
1 -*- org -*-
2
3 * upcoming/planned/todo
4 ** Language:
5 - Semantic patch for other languages
6 - Support metavariables, virtual rules and virtual identifiers
7 in initialize and finalize rules
8 - Support for matching #ifdef, etc.
9 - function-typed metavariables
10 - virtual typedef, declarer name, iterator name
11 - regexps for type metavariables
12
13 ** Features:
14 - New scripting languages
15 - more than one SP on the command line
16
17 ** Bugfix:
18 - Add more information in documentation, man pages and wiki
19 - typedefs from C code should not be used before their point of inference
20 (saved_typedefs in cprogram_of_file)
21
22 * 1.0.0
23 ** Language:
24 - Addition of initializer list metavariables. Thanks to Michael Stefaniuc
25 for noticing the need for them.
26 - Allow multiple position variables per token
27 - ++ can now be associated with - code
28 - Allow /* */ comments as smpl comments, not only as + code
29 - Add support for && (label addresses)
30 - local idexpression metavariable no longer matches static local x
31 - Consider using to be a comment in C++ code. Patch submitted by Jani Monoses.
32 - Command line cocci
33 - print_main etc for ocaml Coccilib
34 - =~ not ~= is used to indicate a regular expression constraint on an
35 identifier.
36 - allow long double, short int, long int, and long long int in SmPL code.
37
38 ** Features:
39 - Preserve spacing before // comments when not at the beginning of a line
40 - Adjusted parsing of endif to put it after jump code
41 - Improve warning message when using -use_cache
42 - More helpful initial value for exported variables in python
43 - Support - on expression nests
44 - Better handling of the case of a matched declaration that should only
45 be replaced by other top level things.
46 - Allow a semantic patch beginning and ending with braces to match the
47 complete body of a function if the braces are not removed and if nothing
48 is added before the first brace or after the last one.
49 - Add -cache_prefix option, to specify where to put cached files.
50 - Allow module_init(foo); to match module_init(foo) (or likewise for any
51 declarer), when no transformation is specified on the semicolon.
52 - Add Coccilib.exit() for ocaml code and cocci.exit() for python code,
53 to abort the treatment of the current file.
54 - Don't multiply print the same patch for the same file
55 - Drop date in diff
56 - Don't repeat smpl type warnings
57 - -sp_file/-cocci_file are now optional. If not present an argument that
58 ends in .cocci is assumed to be the name of the file containing the
59 semantic patch.
60 - Allow limiting the size of a named cache using -cache_limit
61 - Cache name specified with -cache_prefix is extended according to the
62 index (parallelism), if any.
63 - Allow multi-character constants in C code and SmPL code. Thanks to Kamil
64 Pilch for pointing out the problem.
65
66 ** Bugfix:
67 - Corrected parsing of script strings delimited by a single quote. Thanks
68 to Eugeniy Meshcheryakov for reporting the problem.
69 - Improved indentation of added ifdefs.
70 - Allow added comments and #ifdefs to precede other added code. Thanks to
71 Jani Monoses for noticing the problem.
72 - Corrected failure to due missing ocamlfind. Thanks to Derek M. Jones for
73 reporting the problem.
74 - Allow fake nodes to be - in the allminus case, to drop tokens related to
75 a function definition or forward declaration but before the first code
76 mentioned in the semantic patch.
77 - Drop __init etc when deleting a whole function.
78 - Cause appropriate newlines to be preserved when multiple matches (trees)
79 contain adjacent modifications derived from the same SmPL code.
80 - check_meta takes into account fresh identifier seed information.
81 - Types for worth-trying optimization should not be followed by space
82 - Improved filtering of result of matching atomic patterns
83 - Drop positions before creating function prototype rules
84 - Adjust position of { introduced by adding multiple statements in a
85 single-statement position
86 - Drop newline after function call ( when all arguments on that line are
87 eliminated
88 - Accept removal of a single declaration, replaced by arbitrary,
89 non-declaration code
90 - smpl_spacing takes into account newlines, indentation
91 - Improved prevention of transformations on toplevel { ... } from causing
92 changes outside function boundaries; also outside ifs, whiles, etc.
93 Changes are still allowed on { ... } present for other reasons.
94 - Fix bug in include_match that caused everything to halt when all matches
95 were discarded
96 - Don't call Insert_plus on rules that cannot be evaluated due to failed
97 dependencies.
98 - Allow variable declaration right after a case in switch.
99 - The top of a loop is also after the body of a loop, for ... in loop body
100 - Do not anchor Str regexp at the beginning of the string to check
101 - Type annotation for C code uses most recent env for typedefs when
102 possible. Thanks to Andrea Canciani for pointing out the problem.
103 - Pretty print pointer types without a trailing space. Thanks to Michael
104 Stefaniuc for pointing out the problem.
105 - Propagate dependencies further in get_constants2
106 - Make lexer more dos friendly
107
108 * 0.2.5
109 ** Language:
110 - Make a very small attempt to parse C++ code, amounting to accepting
111 identifiers containing ::, tilde, and template invocations. Use the
112 option -c++. This is not likely to be very useful in practice.
113 - Added metavariable metavariable type.
114 - Add disjunctions on identifiers in some contexts
115 - Pretend that & indicates a pointer in -c++ mode
116 - Support for new and delete
117 - Allow arrays in smpl parameter declarations. Thanks to Jesper Louis
118 Andersen for pointing out the problem.
119 - Field list metavariables
120 - Add the ability to add __attributes__ (NB, no matching on attributes)
121 - Slightly improved the error message for transformation on multiple
122 variable declaration. Thanks to Jonathan Nieder for pointing out the
123 problem.
124
125 ** Features:
126 - support transformations on variables (only) in declarations that declare
127 multiple variables
128 - allow #endif XXX in C code
129 - relax_include_path now applied to non local includes too, in which case
130 it tries to find a unique file with a suffix of the provided name.
131 this is useful for directories that are intended to be symbolic links.
132 - support matching and removing #undef
133 - support for iteration in ocaml, requires use of -no_show_diff
134 - calls to likely and unlikely propagate test expression status to their
135 arguments
136 - reuse typedefs and macros from complete parsing when reparsing the
137 transformed code
138 - better explanation when presenting glimpse tokens
139 - optimization for an if branch that is just { ... }
140 - spatch -control_flow_to_file file.c generates a file file.dot
141 - include files with names ending in .cpp if -c++ option is given
142 - removed use of the no longer supported sexplib function Conv.hashtbl_of_sexp
143 - add information about which Fedora packages are needed
144
145 ** Bugfix:
146 - improved parsing of expressions to allow ... to the right of operators in
147 more places
148 - Fix check_config for Python 2.7 on Fedora 14 (Reported-by: Michael Stefaniuc)
149 - Check for ocamlfind in configure (Reported-by: Paul E. McKenney)
150 - Postpone use of ocamlfind at runtime to report fewer errors
151 - Add support for Python 2.4 binding with the provided pycaml library
152 - Allow '@' in script code. Thanks to Laurent Reveillere for noticing the
153 problem.
154 - Remove an optimization of x or true to true in asttoctl2 for the case
155 where x may make a modification, eg the case of -thing ?-thing
156 - Allow adding comments before a function.
157 - Introduction of newlines in function arguments needs to take into account
158 that the code added by SmPL can include newlines. Thanks to Thomas
159 Gleixner for finding the problem.
160
161 * 0.2.4
162 ** Language:
163 - scripts now have names and can declare metavariables that are seen by
164 SmPL as identifier metavariables, see demos/{python,ocaml}tococci.cocci
165 - declaration (match variable declarations) and field (match structure
166 field declarations) metavariables
167 - matching of array initializations and of enum declarations
168
169 ** Features:
170 - compatability with Python 2.7. Thanks to Richard W.M. Jones for pointing
171 out the problem
172 - python and ocaml string representations of parameter lists and expression
173 lists
174 - try simpler patterns on glimpse failure
175 - graceful and immediate failure when a virtual rule is defined on the
176 command line, but not in the rule
177 - spatch returns -1 when a virtual rule is requested that is not supported
178 - no transformation when using * with the option -no_show_diff
179 - expanded +++ file name for match output
180 - struct *^* and enum *^* metavariable types
181 - allow an assignment to match a variable initialization, even if multiple
182 variables are declared at the same time.
183 - add the option -recursive_includes
184 - added the option -use_idutils. The requires the previous use of the
185 script idutils_index.sh
186
187 ** Bugfix:
188 - detect used after metavariables in simple statement metavariable match
189 - allow inheriting position variables over rules that make transformations
190 but depend on virtual rules that are not defined on the command line
191 - treat top-level tokens in decl visitor. Thanks to Peter Tummeltshammer
192 for noticing a resulting problem.
193 - improve typing of the result of an assignment expression
194 - eliminate some recursive calls in C code parsing to avoid stack overflows
195 - better pretty printing of #define when the whole line is removed
196 - better pretty printing of asm code containing
197 "::[input]"r"(&coherence_data[i])"
198 - allow pretty printing of C code with nameless bit fields
199 - avoid adding an error message to standard output if ocamlfind is not
200 found
201 - struct/union/enum-typed metavariables with a metavariable type name
202 - better management of whitespace between deleted lines. Thanks to
203 Andriy Gapon for noticing the problem.
204 - improved parsing recovery for badly parsed struct/enum typedefs
205 - drop expanded tokens in sgrep output. Thanks to Andriy Gapon for
206 noticing the problem.
207 - constant strings have array type, not pointer type. Thanks to Vasiliy
208 Kulikov for noticing the problem.
209 - improve indentation when adding code after a function call with indented
210 arguments.
211 - return type of sizeof converted to unsigned long. Thanks to Vasiliy
212 Kulikov for noticing the problem.
213 - improve spacing when adding structure initializers. Thanks to Vasiliy
214 Kulikov for noticing the problem.
215
216 * 0.2.3
217 ** Language:
218 - <= constraints relating an expression metavariable to one or more
219 inherited expression metavariables that it should be a subexpression of
220 - the -inplace and -outplace options have been renamed -in_place and
221 -out_place. -in_place no longer makes a backup. A backup can be
222 requested using the option -backup_suffix, eg -backup_suffix .bk
223 - identifiers can be constrained to be different from an inherited
224 identifier metavariable, or from a set containing both concrete
225 identifiers and inherited identifier metavariables.
226 - support for ocaml scripting
227 - ast available in ocaml scripts
228
229 ** Features:
230 - drop inconsistent paths check when only one node was matched
231 - allow #define id with no definition
232 - attempt to add newlines in the generated code when function calls in the
233 smpl cause passing column 80
234 - allow - in front of statement level nests, if everything inside the nest
235 is also -
236 - 'configure' looks for some system libraries: menhirLib, sexplib, pycaml.
237 Not available libraries are replaced by a copy provided with the sources.
238 - added static for a function goes just before what is specified in the
239 semantic patch, not before any comments etc.
240 - Add a new option, -ignore_unknown_options, to ease the integration
241 of Coccinelle as a checker in a toolchain.
242 - error in python code causes immediate abort of spatch
243 - use the same algorithm for collecting grep tokens as for collecting
244 glimpse tokens
245 - Add scripts/spatch.bash_completion for automatic completion of common
246 options under the bash shell.
247 - Print rule name when a script rule crashes
248 - Allow the declaration of an expression list or parameter list
249 metavariable to specify the number of expressions or parameters,
250 respectively.
251
252 ** Bugfix:
253 - drop inconsistent paths check when only one node was matched
254 - better take into account virtual rules when selecting glimpse tokens
255 - print diff when only a comment is added
256 - the type of the C code !x should be int regardless of the type of x
257 - allow python code at the beginning of an included file
258 - better adjustment of whitespace when deleting adjacent lines. Thanks to
259 Wolfram Sang for pointing out the problem.
260 - allow metavariables to be inherited from included files
261 - allow ? on goto
262 - more graceful failure on finding a strange character in a macro parameter
263 list
264 - support Parameter metavariables
265 - add space after the last comma in an added portion of an argument list
266 - SmPL nameless struct should only match a nameless struct, not a nameless
267 union. Thanks to Peter Tummeltshammer for pointing out the problem.
268 - adjustments to storage don't modify inline as well
269 - matching and transformation allowed on inline
270 - allow removed field between two ... in structure initialization
271 - allow removing an entire structure initialization
272 - manage labels within do while 0 macros
273 - added space after : in printing a conditional expression. Thanks to Josh
274 Triplett for noticing the problem.
275 - dropped trailing whitespace when code at the end of a line is deleted.
276 Thanks to Josh Triplett for noticing the problem.
277 - Fixed environment management when script rule uses cache. Thanks to
278 Bissyande for finding the problem.
279 - when false matches if with no else
280 - ensure { ... } with whencode checks to the end of the function. Thanks to
281 Rene Rydhof Hansen for finding the problem.
282
283 * 0.2.2
284 ** Language:
285 - Added ToTestExpression to iso language, see standard.iso for an
286 explanation
287 - Added depends on to initialize and finalize script code
288
289 ** Features:
290 - Update Emacs mode (cocci.el) to support 'virtual' rules and fix other
291 keywords sush as 'depends on', 'using', 'disable'
292 - better treatment of != 0 in isos, communtativity for ==/!= for all
293 constants
294 - allow adding // comments and blank lines (even after cocci + code)
295 - Add support for multiple -I options
296
297 ** Bugfix:
298 - correct interaction between virtual rules and included .cocci files
299 - improvement in treatment of ! in isos, to avoid duplicating + code
300 - improvement in treatment of metavars as isos, to avoid duplicating + code
301 between toplevel and variable instantiation
302 - test expression of smpl conditional, etc no longer assumed to have type
303 int
304 - correct + line numbers in the patch produced when using *
305 - iso constant metavariable matches an identifier whose name is all capital
306 letters, eg NULL
307 - allow / at the end of the name of a directory (-dir) or patch prefix
308 (-patch)
309 - dropped space in + code after the binding of a type metavariable that is
310 a pointer type
311 - better handling of . or .. in -dir name
312 - allow keywords and metavariable names in identifier constraints (not sure
313 keywords is very useful, though)
314 - no lubtype on arguments of && and || in SmPL
315 - allow unknown as type for array indices in SmPL
316 - support matching of static annotation on functions that are both static
317 and inline
318 - support ENOTDIR error in Common.lfile_exists, to allow for the case where
319 an include file is in a subdirectory that exists but is an ordinary file,
320 not a directory.
321 - better management of unbound position variables that appear in
322 constraints
323 - cause python parser to skip over // comments, hoping that // is not
324 meaningful inside python
325 - require + on every line of a multiline comment
326 - correct calculation of line numbers when there is script code
327 - always annotate arguments of && || and ! as test expressions in C code.
328
329 * 0.2.1
330 ** Language:
331 - Add virtual identifiers
332 - Add coccilib.report and coccilib.trac Python modules
333 - coccilib.org and coccilib.report are imported by default but not loaded
334 in the current scope.
335
336 ** Features:
337 - Parse_error_msg now more helpful. New option -verbose_parsing for even
338 more information.
339 - Improve Python import handling. They are imported once during script
340 initialization.
341
342 ** Bugfix:
343 - correct treatment of depends on with || for virtual rules
344
345 * 0.2.0
346 ** Language:
347
348 ** Features:
349 - Remove duplicated code in disjunctions
350 - Better error message when grep finds nothing relevant. Thanks to Joe
351 Perches for the suggestion.
352 - added -keep_comments option for the unparsing of the transformed code
353 - Option "-version" now also gives information about built-in
354 Python binding support.
355 - slightly faster environment manipulation in pathological cases
356 - hack added to accept well-formed #define after function header
357
358 ** Bugfix:
359 - Proper consideration of #define macro arguments in checking for the use
360 of metavariables and in computing the line numbers of complex terms
361 - Better parsing of included .cocci files
362 - Put included .cocci files in the right order
363 - Bind position variables only once for #include
364 - Fix bug in include_match that caused everything to halt when all matches
365 were discarded
366 - Merge unlikely/likely iso rules under a iso rule named unlikely
367 - Some fixes to coccicheck rules, thanks to Andrew Lunn
368 - Support groups in regular expression, thanks to Michael Stefaniuc
369
370 * 0.1.11
371
372 ** Language:
373 - Meta-identifier/function and constant could be filtered from SmPL by
374 regular expressions using the "~=" and "!~=" operators followed by
375 an OCaml regular expression (see man Str) in double quote.
376 - Virtual rules, which can be referenced in depends, and set and unset
377 using the command-line options -D
378 - ++ for multiple additions
379
380 ** Features:
381 - coccicheck: a framework to check a series of SmPL files on a project
382 see scripts/coccicheck for more information
383
384 ** Bugfix:
385 - bind position variables to the correct starting position in the case of a
386 complex statement such as an if or while. Thanks to Derek Jones for
387 pointing out the problem.
388 - checking for non mentioned case lines in switch should be unchecked.
389 - space should be printed after sizeof when there are no parentheses around
390 the argument. Thanks to Daniel Walker for pointing out the problem.
391 - avoid introducing sharing in propagating ! over () in treatment of isos
392 - save_excursion has to handle and rethrow exceptions
393 - eliminate unnecessary consideration of CVS strings. Thanks to David
394 Young for pointing out the problem.
395 - completely new treatment of statement metavariables
396 - better type checking for macro definitions
397 - drop regression testing in -parse_c
398
399 * 0.1.10
400
401 ** Language:
402 - declarations allowed in switch, suggested by Derek M. Jones
403
404 ** Features:
405 - use interval timer for timeouts. Thanks to Derek M. Jones for the
406 implementation.
407 - more flexible env.sh, thanks to Derek Jones.
408 - faster Python invocation
409 - simplify unparsing in the sgrep case
410
411 ** Bugfix:
412 - for glimpse there is no point to create a pattern containing a numeric
413 constant because glimpse doesn't index them
414 - add spaces after commas in function calls and function headers
415 - made python integration more like the ubuntu version
416 http://patches.ubuntu.com/by-release/extracted/debian/c/coccinelle/0.1.5dbs-2/01-system-pycaml
417 this fixes some memory management problems with None, True, and False
418 - correct labels associated with a switch in the CFG so that a statement
419 metavariable can match a switch. Thanks to Derek Jones for pointing out
420 the problem.
421 - keep switch pattern within switch body. Thanks to Derek Jones for
422 pointing out the problem.
423 - Allow expanded tokens to be stored in metavariables, as long as they are
424 not removed. But this does currently allow them in + code, which will
425 produce the expansion. Thanks to Ali-Erdem Ozcan for pointing out the
426 problem.
427 - improved adjustment of spacing when code removed at the beginning of a line
428
429 * 0.1.9
430
431 ** Language:
432 - allow fresh identifiers to be declared using ## such that the value mixes
433 both strings and previously declared metavariables
434
435 ** Features:
436 - better handling of expanded code containing ##. Now compute the
437 result.
438 - more precise warning message for the "'\' outside define".
439 Thanks to Nicholas Mc Guire for pointing out the problem.
440 - more precise warning message related to ifdefization.
441 Thanks to Derek Jones for pointing out the problem.
442 - we don't create any more certain files in /tmp (they may be a cause
443 of security problems).
444 Thanks to Eugeniy Meshcheryakov for pointing out the problem.
445 - More optimization for the case of just deleting a complete function.
446 Allows this to happen without tracing through all the control-flow
447 paths. Thanks to Francois Bissyande for pointing out the problem.
448 - prevent code from being added to the beginning or end of a disjunction
449 - more information about why a script is not applied when using -debug option
450 - added -no_safe_expressions option
451 - added -no_loops option. Ignores back edges derived from looping
452 constructs. This is unsafe, but perhaps useful for bug finding, as it can
453 be more efficient.
454 - for semantic matches, allow "minus" on same code with multiple
455 environments
456 - better error message for mismatch of parenthesis in column 0 with normal
457 parenthesis. Thanks to Derek Jones for pointing out the problem.
458 - allow disjunctions on function return types. Thanks to Pierre Habouzit
459 for pointing this out.
460
461 ** Bugfix:
462 - keep disjunction in the proper order for structure initialization fields
463 - variables declared in different places should not seem to match each
464 other
465 - drop complaints about label metavariables not being used
466 - drop test information from the type of an expression when the expression
467 is bound to a metavariable
468 - nests should not extend beyond the before and after code, even if the
469 before and after code matches the nest code
470 - nests should extend into conditionals that end in error exit
471 - take into account metavariables on "else". Thanks to Derek Jones for
472 pointing out the problem.
473 - print single quotes on generated character constants
474 - better typedef handling in the initialisation/affectation builtin
475 isomorphism, cf -test init_affect_typedef
476 - support disjunction of types on variable declaration
477 - allow @ within strings in script code. ignore // comment lines in script
478 code.
479 - don't drop + code placed after the transformed code
480 - drop spaces produced by removing code before semicolons
481 - adjusted spacing within generated code
482 - less verbose -sp. Thanks to Derek Jones for pointing out the problem.
483 - accept multiple type names in a SmPL typedef declaration.
484
485 * 0.1.8
486
487 ** Language:
488
489 ** Features:
490 - Metavariables now capture the cpp code contained within their definitions
491 - When - fragments are separated by ... or nest boundaries in the semantic
492 patch, but end up matching adjacent source code, the comments, cpp code
493 and whitespace that are between them are not deleted.
494 - better parsing of C: do expansion of macros only when needed when
495 have actually a parse error and also leverage the definition of macros
496 in the parsed file (or in a optional_standard.h file passed as a parameter).
497 This should reduce the need for many hardcoded definitions in standard.h
498 - new semantics for the -macro_file option, by default now expand macros
499 only when necessary. To force use the -macro_file_builtins option instead.
500 - a new -extract_macros command line action to help the parser. Works with
501 the -macro_file option. e.g.
502 $ ./spatch -extract_macros ~/linux > /tmp/alldefs.h
503 $ ./spatch -macro_file /tmp/alldefs.h -sp_file foo.cocci -dir ~/linux
504 - removed -D macro_file option, not consistent with what -D usually means
505 - reattempt to be more efficient for statement metavariables that are just
506 placeholders (ie, no modification, no reuse)
507 - triples now returned from ctl in sorted order. The main key is the
508 state. On the other hand, the state order does not always agree with the
509 order of appearance in the code.
510 - spatch is now less verbose on the things it does yet handle. Less confusing
511 for new users.
512 - slightly better error report. Thanks to Derek Jones for the suggestion.
513 - added the options -linux_spacing and -smpl_spacing. -linux_spacing
514 causes spatch to follow the spacing conventions of Linux, while
515 -smpl_spacing causes spatch to follow the spacing in the semantic patch.
516 -linux_spacing is the default.
517 - more informative error reporting for the already tagged token case.
518 Thanks to Erik Hovland for the suggestion.
519
520 ** Bugfix:
521 - better parsing of declare macro at toplevel and in structure.
522 cf -text xfield
523 - allowing back typedef names for fieldname
524 - better printing of else in generated code
525 - slightly better type inference for binary operators.
526 - clear out declarer names and iterator names between SmPL files (for
527 -testall)
528 - better parsing and type checking of macro type aliases. Cf -test macro_int16.
529 Thanks to Li Yingtong for pointing out the problem.
530 - make insert_virtual_positions tail rec, avoid stack overflow pb.
531 Thanks to Diego Liziero <diegoliz@gmail.com> for pointing out the
532 problem.
533 - Better type inference for arithmetic binary operators
534 Thanks to Li Yingtong for pointing out the problem.
535 - Better type inference for constants
536 Thanks to Li Yingtong for pointing out the problem.
537 - move computing of adjacency information for semantic patches to after
538 application of isomorphisms, because isomorphisms can introduce "..."
539 - compute adjacency information for negated ...
540 - record with each transformation site the set of indices of the witness
541 trees that caused the transformation site to come about. Whitespace and
542 comments between remove tokens associated with disjoint witness trees is
543 not removed.
544 - correct treatment of function pointer typed parameters in the SmPL ast0
545 visitor.
546 - better parsing error message and error recovery when comments are not ended,
547 when some macros have a weird body, and when some switch have a weird
548 Body.
549 Thanks to Derek Jones for pointing out the problem.
550 - better detection and passing of "dangerous" ifdefs, cf -test
551 double_switch.
552 - dropped the separation of decls and body in Seq. This gives better
553 positioning of the bindings of metavariables shared between them.
554 Thanks to Erik Hovland for an example that shows the problem.
555
556 ** Internals:
557 - supress warning in compiling ocamlsexp (warning caused by a new behavior
558 of cpp used internally in processing files in ocamlsexp/)
559
560 * 0.1.7
561
562 ** Language:
563 - initialize and finalize script code, cf demos/initial_final.cocci
564
565 ** Features:
566 - -iso_limit option to limit the depth of isomorphism application
567 - with the dir option, the include path is implicitly set to the "include"
568 subdirectory of the specified directory, if the option -I is not used.
569 - give a seed for the name of a fresh identifier
570 - better handling of cpp "constructed" identifiers as in a##b, that in
571 the futur will make it easier to match over those idents.
572 cf tests/pb_parsing_macro.c. Thanks to Ali-Erdem Ozcan for pointing
573 out the problem. A new "parsing hack hint" is also available:
574 YACFE_IDENT_BUILDER, cf standard.h.
575
576 ** Bugfix:
577 - drop excessive "optimization" in ctl generation for while and for loops
578 - allow . as the name of the directory
579 - for type inference for an assignment, take the type of the right-hand
580 side expression, not the type of the assigned variable
581 - allow for with a declartion in the first header element, as in C++
582 (partial support)
583 - allow for matching against variable declarations that include only
584 storage, eg static, but no type at all.
585 - allow for matching against types that contain both short/long and int
586 - allow the type metavariable in the SmPL code "unsigned T" to match a T
587 that is a type consisting of more than one word, eg long int.
588 - -ifdef_to_if option made to process nested ifdefs
589 (partial support)
590
591 ** Internals:
592 - improve and fix installation process (usable on BSD)
593 - improve and fix testing process
594 - apply patches from Eugeniy Meshcheryakov
595 - reorganize the way we parse C identifiers, especially concatenated cpp
596 identifiers as in a##b. This may lead to some regressions as we may
597 not parse as much code as before.
598 - removed popl/ and popl09/ and popl related stuff from official distrib.
599
600 * 0.1.6
601
602 ** Language:
603 - the ability to add comments
604
605 ** Features:
606 - grouping of generated rules with -hrule option
607 - handling of special coccinelle comments
608 /* {{coccinelle:skip_start}} */ and
609 /* {{coccinelle:skip_end}} */
610 allowing to give more hints to the C parser.
611 Thanks to Flavien@lebarbe.net for the idea.
612 - the ability to print the values of more (but not all) kinds of
613 metavariables from python
614 - new vim SmPL mode.
615 Thanks to Alexander Faroy.
616
617 ** Bugfix:
618 - consider the ident tokens also in the 2 lines before the error line for the
619 10-most-problematic-parsing-errors diagnostic.
620 - SmPL parser allows cast as the argument of a pointer
621 - SmPL type checker allows enum as an array index
622 - Better generation of fresh metavariables names in hrule
623 - no more warnings about things that should be metavariables when there is
624 a disjunction in a function position
625 - bugfix in parser, better error message.
626 Thanks to Ali-Erdem OZCAN <ali-erdem.ozcan@st.com> for the bug report.
627
628 ** Internals:
629
630 * 0.1.5
631
632 ** Language:
633 - added initialiser metavariable
634 - added sequences of designators in structures
635
636 ** Features:
637 - improved printing of the C code corresponding to metavariables
638 - improved printing when code (eg declarations) is removed at the beginning
639 of a block, and then is followed by a blank line
640 - slightly less verbose error reporting in parsing_hacks
641
642 ** Bugfix:
643 - fixed some problems with parsing SmPL code where a nest appears after a |
644 - better treatment of { }, form in macros wrt unparse_c
645 - less quiet for -parse_c
646 - improve parsing heuristics regarding macro statement
647
648 ** Internals:
649
650 * 0.1.4
651
652 ** Language:
653 - long long added to SmPL
654
655 ** Documentation:
656 - add grammar reference and spatch command line options reference
657
658 ** Features:
659 - can match patterns of the form unsigned T or signed T, where T is a
660 metavariable
661 - dropped the sizeof_parens isomorphism, which was made redundant by the
662 paren isomorphism
663 - simple rule generation
664
665 ** Bugfix:
666 - trailing , ; and ) no longer left on a line by themselves
667 - better treatment of error exit when the searched for code matches the
668 error exit condition.
669 - fix incorrect treatment of parentheses in test_exps that could allow +
670 code to be added twice
671 - don't ask whether iterator names and declarer names should be declared as
672 metavariables.
673 - slightly better support for expression list metavariables.
674 - short and long allowed for array index types in SmPL
675 - more restrictions on type inference for pointer arithmetic in SmPL
676 - allow isomorphisms to apply when + code is anywhere within all - terms
677 - changed order of printing const and volatile
678 - allow eg ... <... in plus code
679 - better formatting of generated if/while/etc. code
680 - better parse error reporting when the problem is at the end of the file
681
682 ** Internals:
683 - isomorphisms don't apply under signed/unsigned, to prevent the creation
684 of things like unsigned signed int. Need a better solution for this.
685
686 * 0.1.3
687
688 ** Features:
689 - help in building the configuration macro file. The -parse_c action
690 now returns the 10 most frequent parsing errors. This give useful
691 hints to extend standard.h.
692
693 ** Bugfix:
694 - positions no longer allowed on \(, \|, and \)
695 - improved propagation of negation for isos in the presence of parens
696 - convert Todos in flow graph construction to recoverable errors
697 - fixed bug in treatment of when != true and when != false, to allow more
698 than one of them per ...
699 - improve parsing of typedef of function pointer.
700 - improve typing.
701 - parsing and typing support for old style C function declaration.
702 - consider position variables as modifications when optimizing the
703 translation into CTL of function definitions
704
705 ** Internals:
706
707 * 0.1.2
708
709 ** Bugfix:
710 - better handling of ifdef on statements in control flow graph.
711 - transform files even if they do not end in .c (thanks to Vegard Nossum)
712
713 ** Internals:
714 - merge code of yacfe
715
716 * 0.1.1
717
718 ** Language:
719 - support for initializer at toplevel, cf -test substruct
720
721 * 0.1
722
723 ** first public release of the source code:
724
725 ** Language:
726 - embeded python scripting
727 - position
728
729 ** Features
730
731 * beta
732
733 ** first public release of the binary
734
735 * alpha
736
737 ** Features
738 - lots of features ... look at coccinelle research papers and tutorials.