运行 uncrustify 后,我不希望任何行长度超过 80 个字符。如何设置 uncrustify 配置文件中的最大行长度?
最佳答案
将这样的部分添加到您的配置文件中。它不保证获得低于指定宽度的所有行。
#
# 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.
关于code-formatting - uncrustify:如何设置最大线长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52451024/