arm-trusted-firmware/lib/libc
Daniel Boulby a08a201430 Ensure the flow through switch statements is clear
Ensure case clauses:
*   Terminate with an unconditional break, return or goto statement.
*   Use conditional break, return or goto statements as long as the end
    of the case clause is unreachable; such case clauses must terminate
    with assert(0) /* Unreachable */ or an unconditional  __dead2 function
    call
*   Only fallthough when doing otherwise would result in less
    readable/maintainable code; such case clauses must terminate with a
    /* Fallthrough */ comment to make it clear this is the case and
    indicate that a fallthrough is intended.

This reduces the chance of bugs appearing due to unintended flow through a
switch statement

Change-Id: I70fc2d1f4fd679042397dec12fd1982976646168
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
2018-09-21 13:14:13 +01:00
..
abort.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
assert.c backtrace: Print backtrace in assert() and panic() 2018-08-30 09:21:53 +01:00
exit.c libc: Fix some MISRA defects 2018-08-30 16:21:59 +01:00
libc.mk libc: Move tf_printf and tf_snprintf to libc 2018-08-22 10:26:05 +01:00
memchr.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
memcmp.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
memcpy.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
memmove.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
memset.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
printf.c Ensure the flow through switch statements is clear 2018-09-21 13:14:13 +01:00
putchar.c libc: Cleanup remaining files 2018-08-22 10:26:04 +01:00
puts.c libc: Fix some MISRA defects 2018-08-30 16:21:59 +01:00
snprintf.c Ensure the flow through switch statements is clear 2018-09-21 13:14:13 +01:00
strchr.c libc: Cleanup FreeBSD files 2018-08-22 10:26:05 +01:00
strcmp.c libc: Cleanup FreeBSD files 2018-08-22 10:26:05 +01:00
strlen.c libc: Introduce cdefs.h, assert.h and strlen.c 2018-08-22 10:26:04 +01:00
strncmp.c libc: Cleanup FreeBSD files 2018-08-22 10:26:05 +01:00
strnlen.c libc: Cleanup FreeBSD files 2018-08-22 10:26:05 +01:00