qBittorrent/uncrustify.cfg
Eugene Shalygin e809b042aa Add "slots" to WORDS keyword.
Uncrustify inserts line break between an access specifier and "slots".
However, it keeps these words combinations if "Q_SLOTS" is used.
Its built-in parser classifies "Q_SLOTS" as WORD token, thus let's add
"slots" to that class.
2016-04-23 01:57:28 +02:00

63 lines
1.4 KiB
INI

set FOR foreach
set WORD slots
newlines = LF
indent_with_tabs = 0
indent_columns = 4
indent_switch_case = 0
indent_namespace = true
indent_class = true
indent_col1_comment = true
indent_access_spec = -4
nl_after_func_body = 2
nl_collapse_empty_body = true
nl_enum_brace = add
nl_union_brace = add
nl_struct_brace = add
nl_class_brace = add
nl_case_colon_brace = remove
nl_do_brace = remove
nl_if_brace = remove
nl_for_brace = remove
nl_else_brace = remove
nl_while_brace = remove
nl_switch_brace = remove
nl_brace_while = remove
nl_brace_else = remove
nl_try_brace = remove
nl_fcall_brace = remove
nl_fdef_brace = add
nl_after_return = false
nl_brace_else = add
nl_class_leave_one_liners = true
nl_before_access_spec = 2
nl_end_of_file = force
nl_end_of_file_min = 1
nl_namespace_brace = add
mod_full_brace_if = remove
mod_full_brace_if_chain = true
mod_full_brace_do = remove
mod_full_brace_while = remove
mod_full_brace_for = remove
mod_full_brace_if_chain = true
mod_full_brace_nl = 3
mod_full_paren_if_bool = true
sp_else_brace = add
sp_try_brace = add
sp_arith = add
sp_assign = add
sp_defined_paren = ignore
sp_pp_concat = ignore
sp_pp_stringify = ignore
sp_bool = add
sp_after_class_colon = add
sp_before_class_colon = remove
sp_cmt_cpp_start = add
sp_cmt_cpp_doxygen = true
sp_angle_shift = remove
sp_permit_cpp11_shift = true