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

@@ -13,6 +13,7 @@
// common/keymap.h requires KM_LAY, KM_OUT, and KM_IN definitions
#include <common/keymap.h>
// clang-format off
// Conversion of physical layout to keyboard matrix
#define LAYOUT( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, \
@@ -39,6 +40,7 @@
{ ___, K2D, K58, K1D, K2E, K0F, K1E, K0G }, \
{ K56, ___, K3C, ___, K59, K0C, K4D, K3D } \
}
// clang-format on
// Position of physical Esc key in the matrix
#define MATRIX_ESC_INPUT 7