取消脱壳:删除模板角度之间的空间不起作用
Uncrustify: remove space between template angles doesn't work
我想删除模板角度之间的空格,例如:
void Function (list<list<int> >);
^
|
This space should be removed.
为此,我使用sp_angle_shift = remove
,但没有效果。
$ uncrustify -c uncrustify.cfg function.h --no-backup -l CPP
输入
void Function (const list<list<T> > data);
void Function (const list<list<T> > data)
{
}
输出:相同。
如何删除角度之间的空格?
uncrustify
升级到 0.60 并添加/修改:
sp_angle_shift = remove
sp_permit_cpp11_shift = true
供您参考 :
# Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
sp_angle_shift = add # ignore/add/remove/force
# Permit removal of the space between '>>' in 'foo<bar<int> >' (C++11 only). Default=False
# sp_angle_shift cannot remove the space without this option.
sp_permit_cpp11_shift = false # false/true
相关文章:
- 如何使 std::sort 在 std::swap 和我的命名空间的模板化交换之间没有名称冲突?
- 文件删除(使用取消链接)与释放所有磁盘空间之间的延迟
- c++ 内联友元函数是否会导致命名空间之间的名称隐藏?
- 如何解决两个不使用命名空间的第三方库之间的类名冲突?
- 这两个代码之间的差异(为什么我的数组也有额外的空间,即使我限制了它)
- 如何以包装的方式初始化布局,从而减少布局之间的空间
- 尝试从每个预期数据之间有多个空间的文件中读取和存储数据
- 我可以在应用程序之间更改 .proto 文件的命名空间吗?
- 如何在C 中的字符串之间留出空间
- 调用 ADL 时,表达式和命名空间之间是否会发生冲突
- 在C 中的单词之间删除除一个空间以外的所有空间
- 名称名称空间和类模板之间的冲突:不同的编译器行为
- 均衡符号和初始化之间的时间和空间复杂性是否存在差异
- 为什么堆栈中的函数局部变量之间存在内存空间
- 在二进制字符串的数字之间留出空间
- 类名和枚举值之间的冲突:无需命名空间即可解析
- OpenCL:指令和地址之间的状态空间不匹配
- 在类函数和命名空间之间重新声明符号
- 命名空间内的 extern const 和静态 const 类成员之间的区别
- 我收到void main()和使用命名空间std;之间的冲突;?我正在使用代码块