diff --git a/.clang-format b/.clang-format index 4b0d491e380d3a8fc36e1252a073e9619e53b978..6b231cb5eaa93eea3c7e24427194e52f9842ad60 100644 --- a/.clang-format +++ b/.clang-format @@ -20,6 +20,8 @@ AllowShortLoopsOnASingleLine: false AlwaysBreakTemplateDeclarations: true # false表示函数实参要么都在同一行,要么都各自一行 BinPackArguments: false +# 避免格式化 LOG_* 宏 +WhitespaceSensitiveMacros: ['LOG_DEFAULT', 'LOG_PANIC', 'LOG_ERROR', 'LOG_WARN', 'LOG_INFO', 'LOG_DEBUG', 'LOG_TRACE'] AlwaysBreakBeforeMultilineStrings: false BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: true