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