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:
committed by
Jeremy Soller
parent
04df6ae311
commit
b70a09e205
@ -7,6 +7,7 @@
|
||||
#define __code
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
static const char __code BOARD[] =
|
||||
"76EC_BOARD="
|
||||
xstr(__BOARD__);
|
||||
@ -14,6 +15,7 @@ static const char __code BOARD[] =
|
||||
static const char __code VERSION[] =
|
||||
"76EC_VERSION="
|
||||
xstr(__FIRMWARE_VERSION__);
|
||||
// clang-format on
|
||||
|
||||
const char * board() {
|
||||
return &BOARD[11];
|
||||
|
Reference in New Issue
Block a user