lp:coccinelle

Created by Nicolas Palix on 2010-12-14 and last modified on 2019-11-27
Get this branch:
bzr branch lp:coccinelle

Related bugs

Related blueprints

Branch information

Owner:
Nicolas Palix
Project:
Coccinelle
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://github.com/coccinelle/coccinelle.git.

The next import is scheduled to run in 2 hours.

Last successful import was 3 hours ago.

Import started 3 hours ago on alnitak and finished 3 hours ago taking 20 seconds — see the log
Import started 9 hours ago on izar and finished 9 hours ago taking 30 seconds — see the log
Import started 15 hours ago on alnitak and finished 15 hours ago taking 20 seconds — see the log
Import started 21 hours ago on izar and finished 21 hours ago taking 20 seconds — see the log
Import started on 2019-12-14 on izar and finished on 2019-12-14 taking 20 seconds — see the log
Import started on 2019-12-14 on alnitak and finished on 2019-12-14 taking 25 seconds — see the log
Import started on 2019-12-14 on izar and finished on 2019-12-14 taking 20 seconds — see the log
Import started on 2019-12-14 on alnitak and finished on 2019-12-14 taking 20 seconds — see the log
Import started on 2019-12-13 on izar and finished on 2019-12-13 taking 25 seconds — see the log
Import started on 2019-12-13 on alnitak and finished on 2019-12-13 taking 30 seconds — see the log

Recent revisions

4814. By Jaskaran Singh <email address hidden> on 2019-11-27

tests: Add test case for statement removed and added

This is in response to the following "continue statement of death"
report:

https://<email address hidden>/msg06199.html

Coccinelle would crash in similar cases, so add a test case for it.

Signed-off-by: Jaskaran Singh <email address hidden>

4813. By Jaskaran Singh <email address hidden> on 2019-11-27

engine: remove circular references in MINUS/NOREPLACEMENT case

The cocci info tag can sometimes have circular references in the
MINUS/NOREPLACEMENT case in the transformation. Pass the binding
info through clean_env to remove circular references.

Signed-off-by: Jaskaran Singh <email address hidden>

4812. By Jaskaran Singh <email address hidden> on 2019-11-19

parsing_c: handle space and ctx newline around minus toks

Handle the following case:

 space + minus + context newline

In this case, the space should be dropped except if it is followed
by any newline. This should be done just before the minus tokens
are removed from the token stream.

This is useful for situations like the following. Here, the space next to
the right paranthesis should be dropped:

 if(a)
 -{
 -result = b;
 goto c;
 -}

Signed-off-by: Jaskaran Singh <email address hidden>

4811. By Thierry Martinez <email address hidden> on 2019-10-14

Remove and auto-generate config.h.in

4810. By Thierry Martinez <email address hidden> on 2019-10-14

Remove automake warning on basename

4809. By Michele Martone <email address hidden> on 2019-10-14

GADGET3 AoS->SoA semantic patches as tests

These files have been developed to assist a "semantic patch"-driven
restructuring of the data layout of the GADGET simulation code:
from an Arrays-of-Structures layout to a Structures-of-Arrays one.

In terms of C code, it means changing the layout from e.g.:

 // arrays of structs (here P):
 struct particle_data { MyFloat Mass; short int Type; } *P;
 // ...
 for(i=0;i<NumPart;i++){ in->Mass = P[i].Mass; in->Type = P[i].Type; }

into:
 // structures of arrays (P_Mass, P_type):
 MyFloat* P_Mass; short int* P_Type;
 // ...
 for(i=0;i<NumPart;i++) { in->Mass = P_Mass[i]; in->Type = P_Type[i]; }

These files can serve here as Coccinelle tests as well.

Thanks to Antonio Ragagnin for sharing GADGET-specific knowledge, and
Julia Lawall for helping Coccinelle-side.

Signed-off-by: Michele Martone <email address hidden>

4808. By Julia Lawall on 2019-10-04

info for 1.0.9

4807. By Julia Lawall on 2019-10-04

add more kinds of strings and characters

4806. By Julia Lawall on 2019-10-04

add missing semicolon

4805. By Michael Stefaniuc <email address hidden> on 2019-10-04

Add test for wide char character constants and string literals

Signed-off-by: Michael Stefaniuc <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers