[nautilus/wip/oholy/ci-style-check: 1/4] uncrustify: Group single line comments to block
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 1/4] uncrustify: Group single line comments to block
- Date: Wed, 26 Feb 2020 07:20:22 +0000 (UTC)
commit 3d77ae92239801d8ad8f3dfcdaee14681adc397f
Author: Ondrej Holy <oholy redhat com>
Date: Wed Feb 26 08:03:57 2020 +0100
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.
data/uncrustify.cfg | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg
index 3567b1d58..bbff6a2f8 100644
--- a/data/uncrustify.cfg
+++ b/data/uncrustify.cfg
@@ -113,6 +113,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]