Parcourir la source

Add CHECK_PARAM as a conditional macro in clang-format

Otherwise, it won't be treated as a conditional expression, and clang-format will automatically move the opening brace to the line below it.
Frank Praznik il y a 2 jours
Parent
commit
045a127572
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      .clang-format

+ 5 - 0
.clang-format

@@ -77,6 +77,11 @@ SpaceInEmptyParentheses: false
 UseCRLF: false
 UseCRLF: false
 UseTab: Never
 UseTab: Never
 
 
+IfMacros:
+  [
+    "CHECK_PARAM",
+  ]
+
 ForEachMacros:
 ForEachMacros:
   [
   [
     "spa_list_for_each",
     "spa_list_for_each",