aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format6
1 files changed, 5 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 2265e96857b..8326a07251b 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,4 +1,4 @@
-# Minimal clang-format version is 8
+# Minimal clang-format version is 11
BasedOnStyle: GNU
UseTab: Always
@@ -28,3 +28,7 @@ StatementMacros:
- 'VNET_DEVICE_CLASS_TX_FN'
- '__clib_section'
- '__clib_aligned'
+
+WhitespaceSensitiveMacros:
+ - 'WARN_ON'
+ - 'WARN_OFF'