lp:coccinelle
- Get this branch:
- bzr branch lp:coccinelle
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at git://github.com/coccinelle/coccinelle.git.
Last successful import was 3 hours ago.
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>
- 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>
- 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)