libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

uncrustify.cfg (2703B)


      1 input_tab_size = 2
      2 output_tab_size = 2
      3 
      4 indent_columns = 2
      5 indent_with_tabs = 0
      6 indent_case_brace = 2
      7 indent_label=-16
      8 
      9 code_width=80
     10 #cmd_width=80
     11 
     12 # Leave most comments alone for now
     13 cmt_indent_multi=false
     14 sp_cmt_cpp_start=add
     15 
     16 sp_not=add
     17 
     18 sp_func_call_user_paren_paren=remove
     19 sp_inside_fparen=remove
     20 sp_after_cast=add
     21 
     22 ls_for_split_full=true
     23 ls_func_split_full=true
     24 ls_code_width=true
     25 
     26 # Arithmetic operations in wrapped expressions should be at the start
     27 # of the line.
     28 pos_arith=lead
     29 
     30 # Fully parenthesize boolean exprs
     31 mod_full_paren_if_bool=true
     32 
     33 # Braces should be on their own line
     34 nl_fdef_brace=add
     35 nl_enum_brace=add
     36 nl_struct_brace=add
     37 nl_union_brace=add
     38 nl_if_brace=add
     39 nl_brace_else=add
     40 nl_elseif_brace=add
     41 nl_while_brace=add
     42 nl_switch_brace=add
     43 
     44 # no newline between "else" and "if"
     45 nl_else_if=remove
     46 
     47 nl_func_paren=remove
     48 nl_assign_brace=remove
     49 
     50 # No extra newlines that cause noisy diffs
     51 nl_start_of_file=remove
     52 nl_after_func_proto = 2
     53 nl_after_func_body = 3
     54 # If there's no new line, it's not a text file!
     55 nl_end_of_file=add
     56 nl_max_blank_in_func = 3
     57 nl_max = 3
     58 
     59 sp_inside_paren = remove
     60 
     61 sp_arith = add
     62 sp_arith_additive = add
     63 
     64 # We want spaces before and after "="
     65 sp_before_assign = add
     66 sp_after_assign = add
     67 
     68 # we want "char *foo;"
     69 sp_before_ptr_star = add
     70 sp_after_ptr_star = remove
     71 sp_between_ptr_star = remove
     72 
     73 # we want "if (foo) { ... }"
     74 sp_before_sparen = add
     75 
     76 sp_inside_fparen = remove
     77 sp_inside_sparen = remove
     78 
     79 # Add or remove space around compare operator '<', '>', '==', etc
     80 sp_compare                                = add    # ignore/add/remove/force
     81 
     82 # add space before function call and decl: "foo (x)"
     83 sp_func_call_paren = add
     84 sp_func_proto_paren = add
     85 sp_func_proto_paren_empty = add
     86 sp_func_def_paren = add
     87 sp_func_def_paren_empty = add
     88 
     89 # We'd want it for "if ( (foo) || (bar) )", but not for "if (m())",
     90 # so as uncrustify doesn't give exactly what we want => ignore
     91 sp_paren_paren = ignore
     92 sp_inside_paren = remove
     93 sp_bool = force
     94 
     95 nl_func_type_name = force
     96 #nl_branch_else = add
     97 nl_else_brace = add
     98 nl_elseif_brace = add
     99 nl_for_brace = add
    100 
    101 # Whether to ignore the '#define' body while formatting.
    102 pp_ignore_define_body           = true    # true/false
    103 
    104 # Add or remove space between #else or #endif and a trailing comment.
    105 sp_endif_cmt                    = add   # ignore/add/remove/force
    106 
    107 # The span for aligning comments that end lines.
    108 #
    109 # 0: Don't align (default).
    110 align_right_cmt_span            = 3        # unsigned number
    111 
    112 # Minimum number of columns between preceding text and a trailing comment in
    113 # order for the comment to qualify for being aligned. Must be non-zero to have
    114 # an effect.
    115 align_right_cmt_gap             = 2        # unsigned number