]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: make clang-format ignore DEFUN/DEFPY 15972/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 May 2024 19:47:14 +0000 (21:47 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 8 May 2024 19:47:14 +0000 (21:47 +0200)
This makes clang-format not wreck all our hand-formatted DEFUN/DEFPY
statements.  We apparently missed this option when we originally looked
at setting up the .clang-format control file...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
.clang-format

index 93ad18b98a49b4ed9414729bfad475da0129a670..06769c966152af090235aac212834df4e20b2f2d 100644 (file)
@@ -207,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"
 ...