ResInsight/cmake/cmake-format.py

21 lines
667 B
Python
Raw Normal View History

# -----------------------------
# Options effecting formatting.
# See: https://github.com/cheshirekow/cmake_format
# -----------------------------
with section("format"):
# How wide to allow formatted cmake files
line_width = 80
# How many spaces to tab for indent
tab_size = 2
# If true, separate flow control names from their parentheses with a space
separate_ctrl_name_with_space = False
# If true, separate function names from parentheses with a space
separate_fn_name_with_space = False
# If a statement is wrapped to more than one line, than dangle the closing
# parenthesis on its own line.
dangle_parens = True