1*09537850SAkhilesh Sanikop# Generated with cmake-format 0.5.4 2*09537850SAkhilesh Sanikop# -------------------------- 3*09537850SAkhilesh Sanikop# General Formatting Options 4*09537850SAkhilesh Sanikop# -------------------------- 5*09537850SAkhilesh Sanikop# How wide to allow formatted cmake files 6*09537850SAkhilesh Sanikopline_width = 80 7*09537850SAkhilesh Sanikop 8*09537850SAkhilesh Sanikop# How many spaces to tab for indent 9*09537850SAkhilesh Sanikoptab_size = 2 10*09537850SAkhilesh Sanikop 11*09537850SAkhilesh Sanikop# If arglists are longer than this, break them always 12*09537850SAkhilesh Sanikopmax_subargs_per_line = 10 13*09537850SAkhilesh Sanikop 14*09537850SAkhilesh Sanikop# If true, separate flow control names from their parentheses with a space 15*09537850SAkhilesh Sanikopseparate_ctrl_name_with_space = False 16*09537850SAkhilesh Sanikop 17*09537850SAkhilesh Sanikop# If true, separate function names from parentheses with a space 18*09537850SAkhilesh Sanikopseparate_fn_name_with_space = False 19*09537850SAkhilesh Sanikop 20*09537850SAkhilesh Sanikop# If a statement is wrapped to more than one line, than dangle the closing 21*09537850SAkhilesh Sanikop# parenthesis on it's own line 22*09537850SAkhilesh Sanikopdangle_parens = False 23*09537850SAkhilesh Sanikop 24*09537850SAkhilesh Sanikop# If the statement spelling length (including space and parenthesis is larger 25*09537850SAkhilesh Sanikop# than the tab width by more than this amoung, then force reject un-nested 26*09537850SAkhilesh Sanikop# layouts. 27*09537850SAkhilesh Sanikopmax_prefix_chars = 2 28*09537850SAkhilesh Sanikop 29*09537850SAkhilesh Sanikop# If a candidate layout is wrapped horizontally but it exceeds this many lines, 30*09537850SAkhilesh Sanikop# then reject the layout. 31*09537850SAkhilesh Sanikopmax_lines_hwrap = 2 32*09537850SAkhilesh Sanikop 33*09537850SAkhilesh Sanikop# What style line endings to use in the output. 34*09537850SAkhilesh Sanikopline_ending = 'unix' 35*09537850SAkhilesh Sanikop 36*09537850SAkhilesh Sanikop# Format command names consistently as 'lower' or 'upper' case 37*09537850SAkhilesh Sanikopcommand_case = 'lower' 38*09537850SAkhilesh Sanikop 39*09537850SAkhilesh Sanikop# Format keywords consistently as 'lower' or 'upper' case 40*09537850SAkhilesh Sanikopkeyword_case = 'unchanged' 41*09537850SAkhilesh Sanikop 42*09537850SAkhilesh Sanikop# Specify structure for custom cmake functions 43*09537850SAkhilesh Sanikopadditional_commands = { 44*09537850SAkhilesh Sanikop "foo": { 45*09537850SAkhilesh Sanikop "flags": [ 46*09537850SAkhilesh Sanikop "BAR", 47*09537850SAkhilesh Sanikop "BAZ" 48*09537850SAkhilesh Sanikop ], 49*09537850SAkhilesh Sanikop "kwargs": { 50*09537850SAkhilesh Sanikop "HEADERS": "*", 51*09537850SAkhilesh Sanikop "SOURCES": "*", 52*09537850SAkhilesh Sanikop "DEPENDS": "*" 53*09537850SAkhilesh Sanikop } 54*09537850SAkhilesh Sanikop } 55*09537850SAkhilesh Sanikop} 56*09537850SAkhilesh Sanikop 57*09537850SAkhilesh Sanikop# A list of command names which should always be wrapped 58*09537850SAkhilesh Sanikopalways_wrap = [] 59*09537850SAkhilesh Sanikop 60*09537850SAkhilesh Sanikop# Specify the order of wrapping algorithms during successive reflow attempts 61*09537850SAkhilesh Sanikopalgorithm_order = [0, 1, 2, 3, 4] 62*09537850SAkhilesh Sanikop 63*09537850SAkhilesh Sanikop# If true, the argument lists which are known to be sortable will be sorted 64*09537850SAkhilesh Sanikop# lexicographicall 65*09537850SAkhilesh Sanikopenable_sort = False 66*09537850SAkhilesh Sanikop 67*09537850SAkhilesh Sanikop# If true, the parsers may infer whether or not an argument list is sortable 68*09537850SAkhilesh Sanikop# (without annotation). 69*09537850SAkhilesh Sanikopautosort = False 70*09537850SAkhilesh Sanikop 71*09537850SAkhilesh Sanikop# If a comment line starts with at least this many consecutive hash characters, 72*09537850SAkhilesh Sanikop# then don't lstrip() them off. This allows for lazy hash rulers where the first 73*09537850SAkhilesh Sanikop# hash char is not separated by space 74*09537850SAkhilesh Sanikophashruler_min_length = 10 75*09537850SAkhilesh Sanikop 76*09537850SAkhilesh Sanikop# A dictionary containing any per-command configuration overrides. Currently 77*09537850SAkhilesh Sanikop# only `command_case` is supported. 78*09537850SAkhilesh Sanikopper_command = {} 79*09537850SAkhilesh Sanikop 80*09537850SAkhilesh Sanikop 81*09537850SAkhilesh Sanikop# -------------------------- 82*09537850SAkhilesh Sanikop# Comment Formatting Options 83*09537850SAkhilesh Sanikop# -------------------------- 84*09537850SAkhilesh Sanikop# What character to use for bulleted lists 85*09537850SAkhilesh Sanikopbullet_char = '*' 86*09537850SAkhilesh Sanikop 87*09537850SAkhilesh Sanikop# What character to use as punctuation after numerals in an enumerated list 88*09537850SAkhilesh Sanikopenum_char = '.' 89*09537850SAkhilesh Sanikop 90*09537850SAkhilesh Sanikop# enable comment markup parsing and reflow 91*09537850SAkhilesh Sanikopenable_markup = True 92*09537850SAkhilesh Sanikop 93*09537850SAkhilesh Sanikop# If comment markup is enabled, don't reflow the first comment block in each 94*09537850SAkhilesh Sanikop# listfile. Use this to preserve formatting of your copyright/license 95*09537850SAkhilesh Sanikop# statements. 96*09537850SAkhilesh Sanikopfirst_comment_is_literal = True 97*09537850SAkhilesh Sanikop 98*09537850SAkhilesh Sanikop# If comment markup is enabled, don't reflow any comment block which matches 99*09537850SAkhilesh Sanikop# this (regex) pattern. Default is `None` (disabled). 100*09537850SAkhilesh Sanikopliteral_comment_pattern = None 101*09537850SAkhilesh Sanikop 102*09537850SAkhilesh Sanikop# Regular expression to match preformat fences in comments 103*09537850SAkhilesh Sanikop# default=r'^\s*([`~]{3}[`~]*)(.*)$' 104*09537850SAkhilesh Sanikopfence_pattern = '^\\s*([`~]{3}[`~]*)(.*)$' 105*09537850SAkhilesh Sanikop 106*09537850SAkhilesh Sanikop# Regular expression to match rulers in comments 107*09537850SAkhilesh Sanikop# default=r'^\s*[^\w\s]{3}.*[^\w\s]{3}$' 108*09537850SAkhilesh Sanikopruler_pattern = '^\\s*[^\\w\\s]{3}.*[^\\w\\s]{3}$' 109*09537850SAkhilesh Sanikop 110*09537850SAkhilesh Sanikop# If true, then insert a space between the first hash char and remaining hash 111*09537850SAkhilesh Sanikop# chars in a hash ruler, and normalize it's length to fill the column 112*09537850SAkhilesh Sanikopcanonicalize_hashrulers = True 113*09537850SAkhilesh Sanikop 114*09537850SAkhilesh Sanikop 115*09537850SAkhilesh Sanikop# --------------------------------- 116*09537850SAkhilesh Sanikop# Miscellaneous Options 117*09537850SAkhilesh Sanikop# --------------------------------- 118*09537850SAkhilesh Sanikop# If true, emit the unicode byte-order mark (BOM) at the start of the file 119*09537850SAkhilesh Sanikopemit_byteorder_mark = False 120*09537850SAkhilesh Sanikop 121*09537850SAkhilesh Sanikop# Specify the encoding of the input file. Defaults to utf-8. 122*09537850SAkhilesh Sanikopinput_encoding = 'utf-8' 123*09537850SAkhilesh Sanikop 124*09537850SAkhilesh Sanikop# Specify the encoding of the output file. Defaults to utf-8. Note that cmake 125*09537850SAkhilesh Sanikop# only claims to support utf-8 so be careful when using anything else 126*09537850SAkhilesh Sanikopoutput_encoding = 'utf-8' 127