在运行uncrustify之后,我不希望任何行的长度超过80个字符。如何在uncrustify配置文件中设置一行的最大长度?
发布于 2018-11-06 03:54:17
在您的配置文件中添加一个类似这样的部分。它不能保证获取指定宽度以下的所有行。
#
# Line Splitting options
#
code_width 80
# Unsigned Number
# Try to limit code width to N number of columns
ls_for_split_full True
# { False, True }
# Whether to fully split long 'for' statements at semi-colons.
ls_func_split_full True
# { False, True }
# Whether to fully split long function protos/calls at commas.
ls_code_width True
# { False, True }
# Whether to split lines as close to code_width as possible and ignore some groupings.https://stackoverflow.com/questions/52451024
复制相似问题