Compare commits
3 Commits
8b08ebee41
...
0aae214a4c
Author | SHA1 | Date | |
---|---|---|---|
0aae214a4c | |||
5e06854ca6 | |||
d1b3af0f79 |
101
default.cfg
101
default.cfg
@@ -77,9 +77,6 @@ sp_arith_additive = ignore # ignore/add/remove/force
|
|||||||
# Add or remove space around assignment operator '=', '+=', etc.
|
# Add or remove space around assignment operator '=', '+=', etc.
|
||||||
sp_assign = ignore # ignore/add/remove/force
|
sp_assign = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
# Add or remove space around trailing return operator '->'.
|
|
||||||
sp_trailing_ret_t = force # ignore/add/remove/force
|
|
||||||
|
|
||||||
# Add or remove space around '=' in C++11 lambda capture specifications.
|
# Add or remove space around '=' in C++11 lambda capture specifications.
|
||||||
#
|
#
|
||||||
# Overrides sp_assign.
|
# Overrides sp_assign.
|
||||||
@@ -480,6 +477,9 @@ sp_inside_braces = force # ignore/add/remove/force
|
|||||||
# Add or remove space inside '{}'.
|
# Add or remove space inside '{}'.
|
||||||
sp_inside_braces_empty = remove # ignore/add/remove/force
|
sp_inside_braces_empty = remove # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove space around trailing return operator '->'.
|
||||||
|
sp_trailing_return = force # ignore/add/remove/force
|
||||||
|
|
||||||
# Add or remove space between return type and function name. A minimum of 1
|
# Add or remove space between return type and function name. A minimum of 1
|
||||||
# is forced except for pointer return types.
|
# is forced except for pointer return types.
|
||||||
sp_type_func = ignore # ignore/add/remove/force
|
sp_type_func = ignore # ignore/add/remove/force
|
||||||
@@ -1273,22 +1273,22 @@ indent_ignore_asm_block = false # true/false
|
|||||||
nl_collapse_empty_body = false # true/false
|
nl_collapse_empty_body = false # true/false
|
||||||
|
|
||||||
# Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
|
# Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
|
||||||
nl_assign_leave_one_liners = false # true/false
|
nl_assign_leave_one_liners = true # true/false
|
||||||
|
|
||||||
# Don't split one-line braced statements inside a 'class xx { }' body.
|
# Don't split one-line braced statements inside a 'class xx { }' body.
|
||||||
nl_class_leave_one_liners = false # true/false
|
nl_class_leave_one_liners = true # true/false
|
||||||
|
|
||||||
# Don't split one-line enums, as in 'enum foo { BAR = 15 };'
|
# Don't split one-line enums, as in 'enum foo { BAR = 15 };'
|
||||||
nl_enum_leave_one_liners = false # true/false
|
nl_enum_leave_one_liners = false # true/false
|
||||||
|
|
||||||
# Don't split one-line get or set functions.
|
# Don't split one-line get or set functions.
|
||||||
nl_getset_leave_one_liners = false # true/false
|
nl_getset_leave_one_liners = true # true/false
|
||||||
|
|
||||||
# (C#) Don't split one-line property get or set functions.
|
# (C#) Don't split one-line property get or set functions.
|
||||||
nl_cs_property_leave_one_liners = false # true/false
|
nl_cs_property_leave_one_liners = false # true/false
|
||||||
|
|
||||||
# Don't split one-line function definitions, as in 'int foo() { return 0; }'.
|
# Don't split one-line function definitions, as in 'int foo() { return 0; }'.
|
||||||
nl_func_leave_one_liners = true # true/false
|
nl_func_leave_one_liners = false # true/false
|
||||||
|
|
||||||
# Don't split one-line C++11 lambdas, as in '[]() { return 0; }'.
|
# Don't split one-line C++11 lambdas, as in '[]() { return 0; }'.
|
||||||
nl_cpp_lambda_leave_one_liners = true # true/false
|
nl_cpp_lambda_leave_one_liners = true # true/false
|
||||||
@@ -1297,10 +1297,10 @@ nl_cpp_lambda_leave_one_liners = true # true/false
|
|||||||
nl_if_leave_one_liners = true # true/false
|
nl_if_leave_one_liners = true # true/false
|
||||||
|
|
||||||
# Don't split one-line while statements, as in 'while(...) b++;'.
|
# Don't split one-line while statements, as in 'while(...) b++;'.
|
||||||
nl_while_leave_one_liners = true # true/false
|
nl_while_leave_one_liners = false # true/false
|
||||||
|
|
||||||
# Don't split one-line for statements, as in 'for(...) b++;'.
|
# Don't split one-line for statements, as in 'for(...) b++;'.
|
||||||
nl_for_leave_one_liners = true # true/false
|
nl_for_leave_one_liners = false # true/false
|
||||||
|
|
||||||
# (OC) Don't split one-line Objective-C messages.
|
# (OC) Don't split one-line Objective-C messages.
|
||||||
nl_oc_msg_leave_one_liner = false # true/false
|
nl_oc_msg_leave_one_liner = false # true/false
|
||||||
@@ -1491,9 +1491,63 @@ nl_before_throw = ignore # ignore/add/remove/force
|
|||||||
# Add or remove newline between 'namespace' and '{'.
|
# Add or remove newline between 'namespace' and '{'.
|
||||||
nl_namespace_brace = ignore # ignore/add/remove/force
|
nl_namespace_brace = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
# Add or remove newline between 'template<>' and whatever follows.
|
# Add or remove newline after 'template<...>' of a template class.
|
||||||
nl_template_class = ignore # ignore/add/remove/force
|
nl_template_class = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template class declaration.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_class.
|
||||||
|
nl_template_class_decl = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<>' of a specialized class declaration.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_class_decl.
|
||||||
|
nl_template_class_decl_special = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template class definition.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_class.
|
||||||
|
nl_template_class_def = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<>' of a specialized class definition.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_class_def.
|
||||||
|
nl_template_class_def_special = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template function.
|
||||||
|
nl_template_func = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template function
|
||||||
|
# declaration.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_func.
|
||||||
|
nl_template_func_decl = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<>' of a specialized function
|
||||||
|
# declaration.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_func_decl.
|
||||||
|
nl_template_func_decl_special = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template function
|
||||||
|
# definition.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_func.
|
||||||
|
nl_template_func_def = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<>' of a specialized function
|
||||||
|
# definition.
|
||||||
|
#
|
||||||
|
# Overrides nl_template_func_def.
|
||||||
|
nl_template_func_def_special = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline after 'template<...>' of a template variable.
|
||||||
|
nl_template_var = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
|
# Add or remove newline between 'template<...>' and 'using' of a templated
|
||||||
|
# type alias.
|
||||||
|
nl_template_using = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
# Add or remove newline between 'class' and '{'.
|
# Add or remove newline between 'class' and '{'.
|
||||||
nl_class_brace = add # ignore/add/remove/force
|
nl_class_brace = add # ignore/add/remove/force
|
||||||
|
|
||||||
@@ -1819,7 +1873,7 @@ nl_max_blank_in_func = 2 # unsigned number
|
|||||||
nl_before_func_body_proto = 0 # unsigned number
|
nl_before_func_body_proto = 0 # unsigned number
|
||||||
|
|
||||||
# The number of newlines before a multi-line function definition.
|
# The number of newlines before a multi-line function definition.
|
||||||
nl_before_func_body_def = 3 # unsigned number
|
nl_before_func_body_def = 0 # unsigned number
|
||||||
|
|
||||||
# The number of newlines before a class constructor/destructor prototype.
|
# The number of newlines before a class constructor/destructor prototype.
|
||||||
nl_before_func_class_proto = 0 # unsigned number
|
nl_before_func_class_proto = 0 # unsigned number
|
||||||
@@ -1988,15 +2042,6 @@ nl_between_get_set = 0 # unsigned number
|
|||||||
# (C#) Add or remove newline between property and the '{'.
|
# (C#) Add or remove newline between property and the '{'.
|
||||||
nl_property_brace = ignore # ignore/add/remove/force
|
nl_property_brace = ignore # ignore/add/remove/force
|
||||||
|
|
||||||
# The number of newlines after '{' of a namespace. This also adds newlines
|
|
||||||
# before the matching '}'.
|
|
||||||
#
|
|
||||||
# 0: Apply eat_blanks_after_open_brace or eat_blanks_before_close_brace if
|
|
||||||
# applicable, otherwise no change.
|
|
||||||
#
|
|
||||||
# Overrides eat_blanks_after_open_brace and eat_blanks_before_close_brace.
|
|
||||||
nl_inside_namespace = 2 # unsigned number
|
|
||||||
|
|
||||||
# Whether to remove blank lines after '{'.
|
# Whether to remove blank lines after '{'.
|
||||||
eat_blanks_after_open_brace = true # true/false
|
eat_blanks_after_open_brace = true # true/false
|
||||||
|
|
||||||
@@ -2050,7 +2095,7 @@ pos_class_comma = trail # ignore/break/force/lead/trail/join/
|
|||||||
|
|
||||||
# The position of the comma in the constructor initialization list.
|
# The position of the comma in the constructor initialization list.
|
||||||
# Related to nl_constr_colon, nl_constr_init_args and pos_constr_colon.
|
# Related to nl_constr_colon, nl_constr_init_args and pos_constr_colon.
|
||||||
pos_constr_comma = trail_force # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
pos_constr_comma = trail_force # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||||
|
|
||||||
# The position of trailing/leading class colon, between class and base class
|
# The position of trailing/leading class colon, between class and base class
|
||||||
# list. Affects nl_class_colon.
|
# list. Affects nl_class_colon.
|
||||||
@@ -2581,27 +2626,27 @@ mod_remove_extra_semicolon = true # true/false
|
|||||||
|
|
||||||
# If a function body exceeds the specified number of newlines and doesn't have
|
# If a function body exceeds the specified number of newlines and doesn't have
|
||||||
# a comment after the close brace, a comment will be added.
|
# a comment after the close brace, a comment will be added.
|
||||||
mod_add_long_function_closebrace_comment = 20 # unsigned number
|
mod_add_long_function_closebrace_comment = 20 # unsigned number
|
||||||
|
|
||||||
# If a namespace body exceeds the specified number of newlines and doesn't
|
# If a namespace body exceeds the specified number of newlines and doesn't
|
||||||
# have a comment after the close brace, a comment will be added.
|
# have a comment after the close brace, a comment will be added.
|
||||||
mod_add_long_namespace_closebrace_comment = 2 # unsigned number
|
mod_add_long_namespace_closebrace_comment = 2 # unsigned number
|
||||||
|
|
||||||
# If a class body exceeds the specified number of newlines and doesn't have a
|
# If a class body exceeds the specified number of newlines and doesn't have a
|
||||||
# comment after the close brace, a comment will be added.
|
# comment after the close brace, a comment will be added.
|
||||||
mod_add_long_class_closebrace_comment = 16 # unsigned number
|
mod_add_long_class_closebrace_comment = 16 # unsigned number
|
||||||
|
|
||||||
# If a switch body exceeds the specified number of newlines and doesn't have a
|
# If a switch body exceeds the specified number of newlines and doesn't have a
|
||||||
# comment after the close brace, a comment will be added.
|
# comment after the close brace, a comment will be added.
|
||||||
mod_add_long_switch_closebrace_comment = 20 # unsigned number
|
mod_add_long_switch_closebrace_comment = 20 # unsigned number
|
||||||
|
|
||||||
# If an #ifdef body exceeds the specified number of newlines and doesn't have
|
# If an #ifdef body exceeds the specified number of newlines and doesn't have
|
||||||
# a comment after the #endif, a comment will be added.
|
# a comment after the #endif, a comment will be added.
|
||||||
mod_add_long_ifdef_endif_comment = 16 # unsigned number
|
mod_add_long_ifdef_endif_comment = 16 # unsigned number
|
||||||
|
|
||||||
# If an #ifdef or #else body exceeds the specified number of newlines and
|
# If an #ifdef or #else body exceeds the specified number of newlines and
|
||||||
# doesn't have a comment after the #else, a comment will be added.
|
# doesn't have a comment after the #else, a comment will be added.
|
||||||
mod_add_long_ifdef_else_comment = 16 # unsigned number
|
mod_add_long_ifdef_else_comment = 16 # unsigned number
|
||||||
|
|
||||||
# Whether to take care of the case by the mod_sort_xx options.
|
# Whether to take care of the case by the mod_sort_xx options.
|
||||||
mod_sort_case_sensitive = false # true/false
|
mod_sort_case_sensitive = false # true/false
|
||||||
@@ -2865,5 +2910,5 @@ warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
|
|||||||
# `macro-close END_MESSAGE_MAP`
|
# `macro-close END_MESSAGE_MAP`
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# option(s) with 'not default' value: 114
|
# option(s) with 'not default' value: 140
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user