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