aboutsummaryrefslogtreecommitdiffhomepage
path: root/devel
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2012-02-07 18:34:17 +0200
committerGravatar David Bremner <bremner@debian.org>2012-06-03 13:39:57 -0300
commit00a8581e4dcc5112d502729b1698d9c1598d3413 (patch)
treed23187854842483ec3bf95a863f699ff973aa953 /devel
parent44224b6259c82a20f93f19bfab83b817c8009efe (diff)
uncrustify.cfg: comments and more types
Changes to devel/uncrustify.cfg: * Updated header comment to state this is config file for *notmuch*. * Added comment about the reason of 'type' keyword used. * Added some more custom types woth 'type' keyword. * Have (every) multiline comment lines start with '*'.
Diffstat (limited to 'devel')
-rw-r--r--devel/uncrustify.cfg21
1 files changed, 13 insertions, 8 deletions
diff --git a/devel/uncrustify.cfg b/devel/uncrustify.cfg
index d8075ba1..d24cf6e1 100644
--- a/devel/uncrustify.cfg
+++ b/devel/uncrustify.cfg
@@ -1,13 +1,13 @@
#
-# uncrustify config file for the linux kernel
+# Uncrustify config file for notmuch.
+# Based on uncrustify config file for the linux kernel
#
# $Id: linux-indent.cfg 488 2006-09-09 12:44:38Z bengardner $
# Taken from the uncrustify distribution under license (GPL2+)
#
-# sample usage:
+# Sample usage:
# uncrustify --replace -c uncrustify.cfg foo.c
#
-#
indent_with_tabs = 2 # 1=indent to level only, 2=indent with tabs
align_with_tabs = TRUE # use tabs to align
@@ -18,6 +18,8 @@ indent_columns = 4
indent_label = -2 # pos: absolute col, neg: relative column
+indent_cmt_with_tabs = false # true would align to tabstop always...
+
#
# inter-symbol newlines
#
@@ -54,11 +56,14 @@ nl_after_struct = 0
# mod_full_brace_do = remove # "do a--; while ();" vs "do { a--; } while ();"
# mod_full_brace_while = remove # "while (a) a--;" vs "while (a) { a--; }"
-#
-# Extra types used in notmuch source.
-# (add more on demand)
-type GMimeObject mime_node_t
+# In case some custom types aren't detected properly by uncrustify
+# add those to this section below. For example there are cases where
+# uncrustify doesn't know whether a 'token' is part of pointer type
+# or left operand of a binary multiplication operation.
+
+type GMimeObject GMimeCryptoContext GMimeCipherContext
+type mime_node_t notmuch_message_t
#
# inter-character spacing options
@@ -107,6 +112,6 @@ align_right_cmt_span = 8 # align comments span this much in func
# align_pp_define_span = 8;
# align_pp_define_gap = 4;
-# cmt_star_cont = FALSE
+cmt_star_cont = true
# indent_brace = 0