Skip to content

Commit

Permalink
Better .clang-format and uncrustify.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Nov 29, 2018
1 parent f7f5ad3 commit 837629f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakTemplateDeclarations: true
IndentCaseLabels: true
SpaceAfterTemplateKeyword: true
SpaceBeforeCpp11BracedList: false
SortIncludes: true
IndentPPDirectives: AfterHash
IncludeCategories:
- Regex: '^<[a-z_]+>'
Priority: 1
Expand Down
10 changes: 8 additions & 2 deletions uncrustify.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ utf8_force = true
sp_arith = force
sp_assign = force
sp_cpp_lambda_assign = remove
sp_cpp_lambda_paren = remove
sp_assign_default = force
sp_enum_assign = force
sp_enum_colon = force
Expand Down Expand Up @@ -129,7 +130,7 @@ sp_inside_newop_paren = remove
sp_before_tr_emb_cmt = force
indent_columns = 4
indent_with_tabs = 0
indent_namespace = true
indent_namespace = false
indent_namespace_limit = 100
indent_class = true
indent_ctor_init_leading = 1
Expand Down Expand Up @@ -159,6 +160,7 @@ nl_enum_leave_one_liners = true
nl_getset_leave_one_liners = true
nl_func_leave_one_liners = true
nl_cpp_lambda_leave_one_liners = true
nl_cpp_ldef_brace = add
nl_if_leave_one_liners = true
nl_start_of_file = remove
nl_end_of_file = force
Expand Down Expand Up @@ -230,7 +232,7 @@ eat_blanks_after_open_brace = true
eat_blanks_before_close_brace = true
nl_remove_extra_newlines = 1
nl_after_return = true
pos_constr_comma = trail_force
pos_constr_comma = lead_break
pos_constr_colon = lead_force
code_width = 160
ls_func_split_full = true
Expand All @@ -244,3 +246,7 @@ mod_full_brace_while = remove
mod_paren_on_return = remove
mod_remove_extra_semicolon = true
mod_remove_empty_return = true
align_func_params = true
align_func_params_thresh = 140
sp_inside_type_brace_init_lst = remove
nl_constr_init_args = add

0 comments on commit 837629f

Please sign in to comment.