From fbf986ac2a0b926ae97e6796b87e366610d7589e Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Wed, 10 Apr 2019 17:41:46 -0700 Subject: 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 --- include/sbi/sbi_const.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sbi/sbi_const.h') diff --git a/include/sbi/sbi_const.h b/include/sbi/sbi_const.h index e90b752..423d2cf 100644 --- a/include/sbi/sbi_const.h +++ b/include/sbi/sbi_const.h @@ -19,6 +19,8 @@ * leave it unchanged in asm. */ +/* clang-format off */ + #ifdef __ASSEMBLY__ #define _AC(X,Y) X #define _AT(T,X) X @@ -40,4 +42,6 @@ #define __STR(s) #s #define STRINGIFY(s) __STR(s) +/* clang-format on */ + #endif -- cgit v1.2.3