【发布时间】:2021-01-11 14:55:00
【问题描述】:
我正在使用 linux 内核 .clang-format 作为参考,但这部分让我很困扰。
如何获得 clang-format 来格式化此代码
const struct my_struct hello = {.id = 0,
.modsmin = 10,
.modsmax = 20,
.strengthmin = 0,
.strengthmax = 100,
.color = COLOR_FOREGROUND };
到这里
const struct my_struct hello = {
.id = 0,
.modsmin = 10,
.modsmax = 20,
.strengthmin = 0,
.strengthmax = 100,
.color = COLOR_FOREGROUND
};
【问题讨论】:
标签: c struct initializer clang-format