问题描述
我有括号括起来的列表来初始化数组。我想为数组的每个条目添加换行符,如下所示:
const char* const array_of_strings[] = {
"Hey","Hi","Hello","Soup","Atom"
};
但是,通过clang格式将此数组格式化为:
const char *const array_of_strings[] = {"Hey","Atom"};
一旦列表超过 ColumnLimit ,通常是新的衬里。我想要的格式化可以使用clang-format吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)