浏览代码

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 1 月之前
父节点
当前提交
045a127572
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .clang-format

+ 5 - 0
.clang-format

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