Compare commits
6 Commits
8b08ebee41
...
45284f9762
Author | SHA1 | Date | |
---|---|---|---|
45284f9762 | |||
0fd7b3a9fb | |||
bd022ba048 | |||
0aae214a4c | |||
5e06854ca6 | |||
d1b3af0f79 |
158
default.cfg
158
default.cfg
@@ -61,6 +61,15 @@ utf8_byte = true # true/false
|
||||
# Force the output encoding to UTF-8.
|
||||
utf8_force = true # true/false
|
||||
|
||||
# Add or remove space between 'do' and '{'.
|
||||
sp_do_brace_open = ignore # ignore/add/remove/force
|
||||
|
||||
# Add or remove space between '}' and 'while'.
|
||||
sp_brace_close_while = ignore # ignore/add/remove/force
|
||||
|
||||
# Add or remove space between 'while' and '('.
|
||||
sp_while_paren_open = ignore # ignore/add/remove/force
|
||||
|
||||
#
|
||||
# Spacing options
|
||||
#
|
||||
@@ -77,9 +86,6 @@ sp_arith_additive = ignore # ignore/add/remove/force
|
||||
# Add or remove space around assignment operator '=', '+=', etc.
|
||||
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.
|
||||
#
|
||||
# Overrides sp_assign.
|
||||
@@ -480,6 +486,9 @@ sp_inside_braces = force # ignore/add/remove/force
|
||||
# Add or remove space inside '{}'.
|
||||
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
|
||||
# is forced except for pointer return types.
|
||||
sp_type_func = ignore # ignore/add/remove/force
|
||||
@@ -1040,19 +1049,30 @@ indent_func_def_force_col1 = false # true/false
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_func_call_param = false # true/false
|
||||
|
||||
# Same as indent_func_call_param, but for function definitions.
|
||||
# Whether to indent continued function definition parameters one indent level,
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_func_def_param = false # true/false
|
||||
|
||||
# Same as indent_func_call_param, but for function prototypes.
|
||||
# for function definitions, only if indent_func_def_param is false
|
||||
# Allows to align params when appropriate and indent them when not
|
||||
# behave as if it was true if paren position is more than this value
|
||||
# if paren position is more than the option value
|
||||
indent_func_def_param_paren_pos_threshold = 0 # unsigned number
|
||||
|
||||
# Whether to indent continued function call prototype one indent level,
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_func_proto_param = false # true/false
|
||||
|
||||
# Same as indent_func_call_param, but for class declarations.
|
||||
# Whether to indent continued function call declaration one indent level,
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_func_class_param = false # true/false
|
||||
|
||||
# Same as indent_func_call_param, but for class variable constructors.
|
||||
# Whether to indent continued class variable constructors one indent level,
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_func_ctor_var_param = false # true/false
|
||||
|
||||
# Same as indent_func_call_param, but for template parameter lists.
|
||||
# Whether to indent continued template parameter list one indent level,
|
||||
# rather than aligning parameters under the open parenthesis.
|
||||
indent_template_param = false # true/false
|
||||
|
||||
# Double the indent for indent_func_xxx_param options.
|
||||
@@ -1112,9 +1132,12 @@ indent_col1_multi_string_literal = false # true/false
|
||||
# Default: 1
|
||||
indent_label = 1 # number
|
||||
|
||||
# Same as indent_label, but for access specifiers that are followed by a
|
||||
# How to indent access specifiers that are followed by a
|
||||
# colon.
|
||||
#
|
||||
# >0: Absolute column where 1 is the leftmost column
|
||||
# <=0: Subtract from brace indent
|
||||
#
|
||||
# Default: 1
|
||||
indent_access_spec = 1 # number
|
||||
|
||||
@@ -1273,22 +1296,22 @@ indent_ignore_asm_block = false # true/false
|
||||
nl_collapse_empty_body = false # true/false
|
||||
|
||||
# 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.
|
||||
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 };'
|
||||
nl_enum_leave_one_liners = false # true/false
|
||||
|
||||
# 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.
|
||||
nl_cs_property_leave_one_liners = false # true/false
|
||||
|
||||
# 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; }'.
|
||||
nl_cpp_lambda_leave_one_liners = true # true/false
|
||||
@@ -1297,10 +1320,10 @@ nl_cpp_lambda_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++;'.
|
||||
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++;'.
|
||||
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.
|
||||
nl_oc_msg_leave_one_liner = false # true/false
|
||||
@@ -1311,6 +1334,15 @@ nl_oc_mdef_brace = force # ignore/add/remove/force
|
||||
# (OC) Add or remove newline between Objective-C block signature and '{'.
|
||||
nl_oc_block_brace = ignore # ignore/add/remove/force
|
||||
|
||||
# (OC) Add or remove blank line before '@interface' statement.
|
||||
nl_oc_before_interface = ignore # ignore/add/remove/force
|
||||
|
||||
# (OC) Add or remove blank line before '@implementation' statement.
|
||||
nl_oc_before_implementation = ignore # ignore/add/remove/force
|
||||
|
||||
# (OC) Add or remove blank line before '@end' statement.
|
||||
nl_oc_before_end = ignore # ignore/add/remove/force
|
||||
|
||||
# (OC) Add or remove newline between '@interface' and '{'.
|
||||
nl_oc_interface_brace = ignore # ignore/add/remove/force
|
||||
|
||||
@@ -1491,9 +1523,63 @@ nl_before_throw = ignore # ignore/add/remove/force
|
||||
# Add or remove newline between 'namespace' and '{'.
|
||||
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
|
||||
|
||||
# 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 '{'.
|
||||
nl_class_brace = add # ignore/add/remove/force
|
||||
|
||||
@@ -1793,6 +1879,11 @@ nl_create_while_one_liner = true # true/false
|
||||
# a single line.
|
||||
nl_create_func_def_one_liner = false # true/false
|
||||
|
||||
# Whether to collapse a function definition whose body (not counting braces)
|
||||
# is only one line so that the entire definition (prototype, braces, body) is
|
||||
# a single line.
|
||||
nl_create_list_one_liner = false # true/false
|
||||
|
||||
# Whether to split one-line simple unbraced if statements into two lines by
|
||||
# adding a newline, as in 'if(b) <here> i++;'.
|
||||
nl_split_if_one_liner = false # true/false
|
||||
@@ -1819,7 +1910,7 @@ nl_max_blank_in_func = 2 # unsigned number
|
||||
nl_before_func_body_proto = 0 # unsigned number
|
||||
|
||||
# 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.
|
||||
nl_before_func_class_proto = 0 # unsigned number
|
||||
@@ -1988,15 +2079,6 @@ nl_between_get_set = 0 # unsigned number
|
||||
# (C#) Add or remove newline between property and the '{'.
|
||||
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 '{'.
|
||||
eat_blanks_after_open_brace = true # true/false
|
||||
|
||||
@@ -2050,7 +2132,7 @@ pos_class_comma = trail # ignore/break/force/lead/trail/join/
|
||||
|
||||
# The position of the comma in the constructor initialization list.
|
||||
# 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
|
||||
# list. Affects nl_class_colon.
|
||||
@@ -2148,7 +2230,7 @@ align_same_func_call_params_thresh = 1 # number
|
||||
# The span for aligning variable definitions.
|
||||
#
|
||||
# 0: Don't align (default).
|
||||
align_var_def_span = 0 # unsigned number
|
||||
align_var_def_span = 1 # unsigned number
|
||||
|
||||
# How to consider (or treat) the '*' in the alignment of variable definitions.
|
||||
#
|
||||
@@ -2239,7 +2321,7 @@ align_var_class_gap = 0 # unsigned number
|
||||
# The span for aligning struct/union member definitions.
|
||||
#
|
||||
# 0: Don't align (default).
|
||||
align_var_struct_span = 0 # unsigned number
|
||||
align_var_struct_span = 1 # unsigned number
|
||||
|
||||
# The threshold for aligning struct/union member definitions.
|
||||
# Use a negative number for absolute thresholds.
|
||||
@@ -2289,7 +2371,7 @@ align_typedef_amp_style = 0 # unsigned number
|
||||
# The span for aligning comments that end lines.
|
||||
#
|
||||
# 0: Don't align (default).
|
||||
align_right_cmt_span = 1 # unsigned number
|
||||
align_right_cmt_span = 120 # unsigned number
|
||||
|
||||
# Minimum number of columns between preceding text and a trailing comment in
|
||||
# order for the comment to qualify for being aligned. Must be non-zero to have
|
||||
@@ -2301,7 +2383,7 @@ align_right_cmt_gap = 1 # unsigned number
|
||||
align_right_cmt_mix = false # true/false
|
||||
|
||||
# Whether to only align trailing comments that are at the same brace level.
|
||||
align_right_cmt_same_level = false # true/false
|
||||
align_right_cmt_same_level = true # true/false
|
||||
|
||||
# Minimum column at which to align trailing comments. Comments which are
|
||||
# aligned beyond this column, but which can be aligned in a lesser column,
|
||||
@@ -2581,27 +2663,27 @@ mod_remove_extra_semicolon = true # true/false
|
||||
|
||||
# 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.
|
||||
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
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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.
|
||||
mod_sort_case_sensitive = false # true/false
|
||||
@@ -2865,5 +2947,5 @@ warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
|
||||
# `macro-close END_MESSAGE_MAP`
|
||||
#
|
||||
#
|
||||
# option(s) with 'not default' value: 114
|
||||
# option(s) with 'not default' value: 145
|
||||
#
|
||||
|
Reference in New Issue
Block a user