forked from Mirrors/opensbi
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:

committed by
Anup Patel

parent
97fb8c0e3b
commit
fbf986ac2a
@@ -70,6 +70,9 @@ static inline u64 __raw_readq(const volatile void *addr)
|
||||
#endif
|
||||
|
||||
/* FIXME: These are now the same as asm-generic */
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
#define __io_rbr() do {} while (0)
|
||||
#define __io_rar() do {} while (0)
|
||||
#define __io_rbw() do {} while (0)
|
||||
@@ -106,4 +109,6 @@ static inline u64 __raw_readq(const volatile void *addr)
|
||||
#define writeq(v,c) ({ __io_bw(); __raw_writeq((v),(c)); __io_aw(); })
|
||||
#endif
|
||||
|
||||
/* clang-format on */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user