diff options
author | Olof Johansson <olof@lixom.net> | 2019-04-10 17:41:46 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-04-24 09:49:46 +0530 |
commit | fbf986ac2a0b926ae97e6796b87e366610d7589e (patch) | |
tree | 1d65814b7832b1173c4094e4f91c7da9f491e87a /include/sbi/sbi_trap.h | |
parent | 97fb8c0e3bcd4d7915ea35020e4d95999d389cd3 (diff) |
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>
Diffstat (limited to 'include/sbi/sbi_trap.h')
-rw-r--r-- | include/sbi/sbi_trap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h index 504e7dd..e2a52b5 100644 --- a/include/sbi/sbi_trap.h +++ b/include/sbi/sbi_trap.h @@ -10,6 +10,8 @@ #ifndef __SBI_TRAP_H__ #define __SBI_TRAP_H__ +/* clang-format off */ + /** Index of zero member in sbi_trap_regs */ #define SBI_TRAP_REGS_zero 0 /** Index of ra member in sbi_trap_regs */ @@ -81,6 +83,8 @@ /** Last member index in sbi_trap_regs */ #define SBI_TRAP_REGS_last 34 +/* clang-format on */ + /** Get offset of member with name 'x' in sbi_trap_regs */ #define SBI_TRAP_REGS_OFFSET(x) \ ((SBI_TRAP_REGS_##x) * __SIZEOF_POINTER__) |