diff options
author | Ondrej Holy <oholy@redhat.com> | 2020-02-26 08:03:57 +0100 |
---|---|---|
committer | António Fernandes <antoniojpfernandes@gmail.com> | 2020-04-05 16:22:26 +0000 |
commit | bec3229e998852f69933e500e676fccb76d1c4cb (patch) | |
tree | 7b09d0f3c54bd20602be5588c83460f35fc1accb /data | |
parent | 787842f948b102d408e1e4148eeec28e71470870 (diff) | |
download | nautilus-bec3229e998852f69933e500e676fccb76d1c4cb.tar.gz |
uncrustify: Group single line comments to block
C++ comments ("//") are converted to C comments ("/* */"), but they
are not grouped together. So, each line is enclosed by "/* */". Let's
add cmt_cpp_group and cmt_c_group options to ensure that the single
line comments are grouped together.
Diffstat (limited to 'data')
-rw-r--r-- | data/uncrustify.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg index 58e86baa2..3883681ef 100644 --- a/data/uncrustify.cfg +++ b/data/uncrustify.cfg @@ -116,6 +116,8 @@ nl_assign_leave_one_liners = true # Comments cmt_cpp_to_c = true # "/* */" vs. "//" +cmt_cpp_group = true # Group single line comments to block +cmt_c_group = true cmt_convert_tab_to_spaces = true #cmt_reflow_mode = 2 # Full reflow (seems doesn't work quite well, it doesn't reorder the comments) #cmt_width = 80 # Line width |