all: Annotate some tables to have clang-format leave them alone

One of the shortcomings of clang-format is that it doesn't allow
for aligned define tables, which is used for a number of constants.

Add annotation to disable the automatic formatting where needed.

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson
2019-04-10 17:41:46 -07:00
committed by Anup Patel
parent 97fb8c0e3b
commit fbf986ac2a
18 changed files with 72 additions and 1 deletions

View File

@@ -15,6 +15,8 @@
#include <plat/serial/sifive-uart.h>
#include <plat/sys/clint.h>
/* clang-format off */
#define SIFIVE_U_HART_COUNT 1
#define SIFIVE_U_HART_STACK_SIZE 8192
@@ -30,6 +32,8 @@
#define SIFIVE_U_UART0_ADDR 0x10013000
#define SIFIVE_U_UART1_ADDR 0x10023000
/* clang-format on */
static int sifive_u_final_init(bool cold_boot)
{
void *fdt;