| /// Find assignments to unsigned variables and add an 'U' to the value |
| // Copyright: (C) 2018 Intel Corporation |
| // Copyright: (C) 2018 Himanshu Jha |
| // Copyright: (C) 2018 Julia Lawall, Inria/LIP6 |
| // SPDX-License-Identifier: Apache-2.0 |
| typedef uint8_t, uint16_t, uint32_t, uint64_t, u8_t, u16_t, u32_t, u64_t; |
| {unsigned char, unsigned short, unsigned int, uint8_t, uint16_t, uint32_t, uint64_t, u8_t, u16_t, u32_t, u64_t} v; |
| @script:python r_rewrite@ |
| cocci.include_match(False) |
| @r_subst depends on patch@ |
| {unsigned char, unsigned short, unsigned int, uint8_t, uint16_t, uint32_t, uint64_t, u8_t, u16_t, u32_t, u64_t} r_unsigned.v; |
| @script: python depends on report@ |
| msg="WARNING: Unsigned 'U' suffix missing" |
| coccilib.report.print_report(p[0], msg) |