Disable clang-format for sensitive blocks

Things like macro blocks should not be auto-formatted.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
Tim Crawford
2021-07-19 09:40:22 -06:00
committed by Jeremy Soller
parent 04df6ae311
commit b70a09e205
58 changed files with 116 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include <board/kbled.h>
#include <common/macro.h>
// clang-format off
static uint8_t LEVEL_I = 1;
static const uint8_t __code LEVELS[] = {
48,
@ -23,6 +24,7 @@ static const uint32_t __code COLORS[] = {
0x00FFFF,
0xFFFF00
};
// clang-format on
void kbled_hotkey_color(void) {
if (COLOR_I < (ARRAY_SIZE(COLORS) - 1)) {