summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:56:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:56:24 +0000
commit54de8bbe36d7d968c6367939277942518bd4e11f (patch)
tree924f8c16d9c8831679f355b88c620b9b356c9d5a /.clang-format
parentAdding debian version 10.0.1-0.1. (diff)
downloadfrr-54de8bbe36d7d968c6367939277942518bd4e11f.tar.xz
frr-54de8bbe36d7d968c6367939277942518bd4e11f.zip
Merging upstream version 10.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format18
1 files changed, 18 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index d16263d..06769c9 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
# clang-format configuration file. Intended for clang-format >= 11.
+# If the version is changed also check that CI tool frrbot is updated.
#
# For more information, see:
#
@@ -206,4 +207,21 @@ SpacesInSquareBrackets: false
Standard: Cpp03
TabWidth: 8
UseTab: Always
+WhitespaceSensitiveMacros:
+ - "DEFPY"
+ - "DEFPY_HIDDEN"
+ - "DEFPY_NOSH"
+ - "DEFPY_YANG"
+ - "DEFPY_YANG_HIDDEN"
+ - "DEFPY_YANG_NOSH"
+ - "DEFSH"
+ - "DEFSH_HIDDEN"
+ - "DEFUN"
+ - "DEFUN_HIDDEN"
+ - "DEFUN_NOSH"
+ - "DEFUN_YANG"
+ - "DEFUN_YANG_HIDDEN"
+ - "DEFUN_YANG_NOSH"
+ - "DEFUNSH"
+ - "DEFUNSH_HIDDEN"
...