This commit is contained in:
2026-09-25 20:54:28 +08:00
parent 88c9035c43
commit 07532d215f
33 changed files with 843 additions and 628 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ return {
},
formatters = {
["clang-format"] = {
args = { "--style={BasedOnStyle: LLVM, IndentWidth: 4, TabWidth: 4, UseTab: Never, ColumnLimit: 0}" },
-- 用 prepend_args (不是 args!): 保留 conform 默认的 "-assume-filename $FILENAME".
-- 若用 args 会覆盖默认值, 导致 clang-format 读 stdin 时丢失文件名 → 语言检测/样式查找出问题.
-- 优先读项目 .clang-format 文件; 没有该文件时用此内联 4 空格样式兜底.
prepend_args = { "--style={BasedOnStyle: LLVM, IndentWidth: 4, TabWidth: 4, UseTab: Never, ColumnLimit: 0}" },
},
},
},