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 authored and Anup Patel committed 2019-04-24 09:49:46 +05:30
1 parent 97fb8c0e3b
commit fbf986ac2a
18 files changed
+72 -1

No files matched your search

+4
View File
@@ -19,6 +19,8 @@
#include <plat/serial/sifive-uart.h>
#include <plat/sys/clint.h>
/* clang-format off */
#define FU540_HART_COUNT 5
#define FU540_HART_STACK_SIZE 8192
@@ -50,6 +52,8 @@
#define FU540_PRCI_CLKMUXSTATUSREG 0x002C
#define FU540_PRCI_CLKMUX_STATUS_TLCLKSEL (0x1 << 1)
/* clang-format on */
static void fu540_modify_dt(void *fdt)
{
u32 i, size;