1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core: disable uncrustify for atomic_*.c

This commit is contained in:
Kaspar Schleiser 2019-01-25 12:03:17 +01:00
parent 7e85081ddc
commit 4a31068d15
2 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,11 @@
#include <string.h>
#include "irq.h"
/*
* uncrustify mis-formats the macros in this file, so disable it for them.
* begin{code-style-ignore}
*/
/* GCC documentation refers to the types as I1, I2, I4, I8, I16 */
typedef uint8_t I1;
typedef uint16_t I2;
@ -245,6 +250,8 @@ TEMPLATE_ATOMIC_OP_FETCH_N(nand, &, 2, ~) /* __atomic_nand_fetch_2 */
TEMPLATE_ATOMIC_OP_FETCH_N(nand, &, 4, ~) /* __atomic_nand_fetch_4 */
TEMPLATE_ATOMIC_OP_FETCH_N(nand, &, 8, ~) /* __atomic_nand_fetch_8 */
/* end{code-style-ignore} */
/* ***** Generic versions below ***** */
/* Clang objects if you redefine a builtin. This little hack allows us to

View File

@ -29,6 +29,11 @@
#include <string.h>
#include "irq.h"
/*
* uncrustify mis-formats the macros in this file, so disable it globally.
* begin{code-style-ignore}
*/
/* use gcc/clang implementation if available */
#if defined(__GNUC__) \
&& (__GNUC__ > 4 || \
@ -234,4 +239,5 @@ TEMPLATE_SYNC_OP_AND_FETCH_N(nand, &, 2, ~) /* __sync_nand_and_fetch_2 */
TEMPLATE_SYNC_OP_AND_FETCH_N(nand, &, 4, ~) /* __sync_nand_and_fetch_4 */
TEMPLATE_SYNC_OP_AND_FETCH_N(nand, &, 8, ~) /* __sync_nand_and_fetch_8 */
#endif
/* end{code-style-ignore} */
/** @} */