coccinelle:fix.285.stdcompat_bytes_unsafe_blit_string

Last commit made on 2022-08-31
Get this branch:
git clone -b fix.285.stdcompat_bytes_unsafe_blit_string https://git.launchpad.net/coccinelle

Branch merges

Branch information

Name:
fix.285.stdcompat_bytes_unsafe_blit_string
Repository:
lp:coccinelle

Recent commits

4bb5c5a... by Thierry Martinez <email address hidden>

Update bundled stdcompat to v19

This should fix #285, reported by Absoler.

2ef1d63... by Thierry Martinez <email address hidden>

Update comment for OCaml >=4.07: Pervasives->Stdlib

ab8f34c... by Julia Lawall <email address hidden>

give float constants fully correct types

cocci_vs_c expects the fake tokens to match the kind.

Detected thanks to a bug report by Johannes Schindelin.
Github issue #284.

ea3c8d6... by Julia Lawall <email address hidden>

add // detection

When a semantic patch adds a comment //, then we have to check that this
is not immediately followed by some token from the original program,
because that token will be consumed by the command.

If there is such a token, then add a newline. If there is already a
newline, then nothing needs to be done.

ef9f893... by Julia Lawall <email address hidden>

add type name to signable types

Moved out of non signable types and into signable types for the purpose
of bitfields, because eg u8 has to be allowed to have a bitfield.

This only affects structure fields.

efcaf0b... by Julia Lawall <email address hidden>

the fake trailing comma goes inside the brace, not after it

95b7903... by Julia Lawall <email address hidden>

delete trailing spaces

5e60ad6... by Julia Lawall <email address hidden>

enum tests for C++

606dfd3... by Julia Lawall <email address hidden>

restore these tests (enum for C)

cd33db1... by Julia Lawall <email address hidden>

ignore bef information for meta decl

The bef information on a Decl is the place for adding something that
should come before the entire declaration, including eg static that
might not be mentioned in the semantic patch.

This feature is not needed in the MetaDecl case, because the MetaDecl
matches the whole declaaration, whatever it is. Indeed, the bef
information is just passed along without being processed in
cocci_vs_c.ml. So just skip it in insert_plus in finding the places
that tokens can be attached to.

Reported by Jan Tojnar in github issue #281