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