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