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