xref: /aosp_15_r20/external/libaom/.cmake-format.py (revision 77c1e3ccc04c968bd2bc212e87364f250e820521)
1*77c1e3ccSAndroid Build Coastguard Worker# Generated with cmake-format 0.5.1
2*77c1e3ccSAndroid Build Coastguard Worker# How wide to allow formatted cmake files
3*77c1e3ccSAndroid Build Coastguard Workerline_width = 80
4*77c1e3ccSAndroid Build Coastguard Worker
5*77c1e3ccSAndroid Build Coastguard Worker# How many spaces to tab for indent
6*77c1e3ccSAndroid Build Coastguard Workertab_size = 2
7*77c1e3ccSAndroid Build Coastguard Worker
8*77c1e3ccSAndroid Build Coastguard Worker# If arglists are longer than this, break them always
9*77c1e3ccSAndroid Build Coastguard Workermax_subargs_per_line = 10
10*77c1e3ccSAndroid Build Coastguard Worker
11*77c1e3ccSAndroid Build Coastguard Worker# If true, separate flow control names from their parentheses with a space
12*77c1e3ccSAndroid Build Coastguard Workerseparate_ctrl_name_with_space = False
13*77c1e3ccSAndroid Build Coastguard Worker
14*77c1e3ccSAndroid Build Coastguard Worker# If true, separate function names from parentheses with a space
15*77c1e3ccSAndroid Build Coastguard Workerseparate_fn_name_with_space = False
16*77c1e3ccSAndroid Build Coastguard Worker
17*77c1e3ccSAndroid Build Coastguard Worker# If a statement is wrapped to more than one line, than dangle the closing
18*77c1e3ccSAndroid Build Coastguard Worker# parenthesis on it's own line
19*77c1e3ccSAndroid Build Coastguard Workerdangle_parens = False
20*77c1e3ccSAndroid Build Coastguard Worker
21*77c1e3ccSAndroid Build Coastguard Worker# What character to use for bulleted lists
22*77c1e3ccSAndroid Build Coastguard Workerbullet_char = '*'
23*77c1e3ccSAndroid Build Coastguard Worker
24*77c1e3ccSAndroid Build Coastguard Worker# What character to use as punctuation after numerals in an enumerated list
25*77c1e3ccSAndroid Build Coastguard Workerenum_char = '.'
26*77c1e3ccSAndroid Build Coastguard Worker
27*77c1e3ccSAndroid Build Coastguard Worker# What style line endings to use in the output.
28*77c1e3ccSAndroid Build Coastguard Workerline_ending = u'unix'
29*77c1e3ccSAndroid Build Coastguard Worker
30*77c1e3ccSAndroid Build Coastguard Worker# Format command names consistently as 'lower' or 'upper' case
31*77c1e3ccSAndroid Build Coastguard Workercommand_case = u'lower'
32*77c1e3ccSAndroid Build Coastguard Worker
33*77c1e3ccSAndroid Build Coastguard Worker# Format keywords consistently as 'lower' or 'upper' case
34*77c1e3ccSAndroid Build Coastguard Workerkeyword_case = u'unchanged'
35*77c1e3ccSAndroid Build Coastguard Worker
36*77c1e3ccSAndroid Build Coastguard Worker# Specify structure for custom cmake functions
37*77c1e3ccSAndroid Build Coastguard Workeradditional_commands = {
38*77c1e3ccSAndroid Build Coastguard Worker  "foo": {
39*77c1e3ccSAndroid Build Coastguard Worker    "flags": [
40*77c1e3ccSAndroid Build Coastguard Worker      "BAR",
41*77c1e3ccSAndroid Build Coastguard Worker      "BAZ"
42*77c1e3ccSAndroid Build Coastguard Worker    ],
43*77c1e3ccSAndroid Build Coastguard Worker    "kwargs": {
44*77c1e3ccSAndroid Build Coastguard Worker      "HEADERS": "*",
45*77c1e3ccSAndroid Build Coastguard Worker      "DEPENDS": "*",
46*77c1e3ccSAndroid Build Coastguard Worker      "SOURCES": "*"
47*77c1e3ccSAndroid Build Coastguard Worker    }
48*77c1e3ccSAndroid Build Coastguard Worker  }
49*77c1e3ccSAndroid Build Coastguard Worker}
50*77c1e3ccSAndroid Build Coastguard Worker
51*77c1e3ccSAndroid Build Coastguard Worker# A list of command names which should always be wrapped
52*77c1e3ccSAndroid Build Coastguard Workeralways_wrap = []
53*77c1e3ccSAndroid Build Coastguard Worker
54*77c1e3ccSAndroid Build Coastguard Worker# Specify the order of wrapping algorithms during successive reflow attempts
55*77c1e3ccSAndroid Build Coastguard Workeralgorithm_order = [0, 1, 2, 3, 4]
56*77c1e3ccSAndroid Build Coastguard Worker
57*77c1e3ccSAndroid Build Coastguard Worker# If true, the argument lists which are known to be sortable will be sorted
58*77c1e3ccSAndroid Build Coastguard Worker# lexicographicall
59*77c1e3ccSAndroid Build Coastguard Workerautosort = False
60*77c1e3ccSAndroid Build Coastguard Worker
61*77c1e3ccSAndroid Build Coastguard Worker# enable comment markup parsing and reflow
62*77c1e3ccSAndroid Build Coastguard Workerenable_markup = True
63*77c1e3ccSAndroid Build Coastguard Worker
64*77c1e3ccSAndroid Build Coastguard Worker# If comment markup is enabled, don't reflow the first comment block in
65*77c1e3ccSAndroid Build Coastguard Worker# eachlistfile. Use this to preserve formatting of your
66*77c1e3ccSAndroid Build Coastguard Worker# copyright/licensestatements.
67*77c1e3ccSAndroid Build Coastguard Workerfirst_comment_is_literal = True
68*77c1e3ccSAndroid Build Coastguard Worker
69*77c1e3ccSAndroid Build Coastguard Worker# If comment markup is enabled, don't reflow any comment block which matchesthis
70*77c1e3ccSAndroid Build Coastguard Worker# (regex) pattern. Default is `None` (disabled).
71*77c1e3ccSAndroid Build Coastguard Workerliteral_comment_pattern = None
72*77c1e3ccSAndroid Build Coastguard Worker
73*77c1e3ccSAndroid Build Coastguard Worker# Regular expression to match preformat fences in comments
74*77c1e3ccSAndroid Build Coastguard Worker# default=r'^\s*([`~]{3}[`~]*)(.*)$'
75*77c1e3ccSAndroid Build Coastguard Workerfence_pattern = u'^\\s*([`~]{3}[`~]*)(.*)$'
76*77c1e3ccSAndroid Build Coastguard Worker
77*77c1e3ccSAndroid Build Coastguard Worker# Regular expression to match rulers in comments
78*77c1e3ccSAndroid Build Coastguard Worker# default=r'^\s*[^\w\s]{3}.*[^\w\s]{3}$'
79*77c1e3ccSAndroid Build Coastguard Workerruler_pattern = u'^\\s*[^\\w\\s]{3}.*[^\\w\\s]{3}$'
80*77c1e3ccSAndroid Build Coastguard Worker
81*77c1e3ccSAndroid Build Coastguard Worker# If true, emit the unicode byte-order mark (BOM) at the start of the file
82*77c1e3ccSAndroid Build Coastguard Workeremit_byteorder_mark = False
83*77c1e3ccSAndroid Build Coastguard Worker
84*77c1e3ccSAndroid Build Coastguard Worker# If a comment line starts with at least this many consecutive hash characters,
85*77c1e3ccSAndroid Build Coastguard Worker# then don't lstrip() them off. This allows for lazy hash rulers where the first
86*77c1e3ccSAndroid Build Coastguard Worker# hash char is not separated by space
87*77c1e3ccSAndroid Build Coastguard Workerhashruler_min_length = 10
88*77c1e3ccSAndroid Build Coastguard Worker
89*77c1e3ccSAndroid Build Coastguard Worker# If true, then insert a space between the first hash char and remaining hash
90*77c1e3ccSAndroid Build Coastguard Worker# chars in a hash ruler, and normalize it's length to fill the column
91*77c1e3ccSAndroid Build Coastguard Workercanonicalize_hashrulers = True
92*77c1e3ccSAndroid Build Coastguard Worker
93*77c1e3ccSAndroid Build Coastguard Worker# Specify the encoding of the input file. Defaults to utf-8.
94*77c1e3ccSAndroid Build Coastguard Workerinput_encoding = u'utf-8'
95*77c1e3ccSAndroid Build Coastguard Worker
96*77c1e3ccSAndroid Build Coastguard Worker# Specify the encoding of the output file. Defaults to utf-8. Note that cmake
97*77c1e3ccSAndroid Build Coastguard Worker# only claims to support utf-8 so be careful when using anything else
98*77c1e3ccSAndroid Build Coastguard Workeroutput_encoding = u'utf-8'
99*77c1e3ccSAndroid Build Coastguard Worker
100*77c1e3ccSAndroid Build Coastguard Worker# A dictionary containing any per-command configuration overrides. Currently
101*77c1e3ccSAndroid Build Coastguard Worker# only `command_case` is supported.
102*77c1e3ccSAndroid Build Coastguard Workerper_command = {}
103