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

@@ -21,6 +21,7 @@
#define KI2 K_INT_2
#endif
// 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, K0H, K0I, K0J, \
@@ -49,6 +50,7 @@
{ K0H, K0G, K43, K4C, K59, K10, K0B, K0C }, \
{ K35, K1C, K4F, K51, K4D, K58, K5A, ___ } \
}
// clang-format on
// Position of physical Esc key in the matrix
#define MATRIX_ESC_INPUT 7