Обновление правил для cmake-format

This commit is contained in:
Andrei Astafev 2020-04-14 18:44:54 +03:00
parent 3e8511da71
commit b5ed0303a1

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
# ---------------------------------- # ----------------------------------
# Options affecting listfile parsing # Options affecting listfile parsing
# ---------------------------------- # ----------------------------------
@ -5,15 +7,21 @@ with section("parse"):
# Specify structure for custom cmake functions # Specify structure for custom cmake functions
additional_commands = { additional_commands = {
'add_doxygen': { 'flags' : [],
'kwargs': { 'LATEX': 1,
'HTML': 1,
'COMMENT': 1}},
'add_breathe': { 'flags' : [],
'kwargs': { 'COMMENT': 1}},
'add_common_library': { 'flags' : [], 'add_common_library': { 'flags' : [],
'kwargs': { 'OUTPUT_NAME': '*', 'kwargs': { 'OUTPUT_NAME': 1,
'SOURCES': '*', 'SOURCES': '*',
'TARGET': '1'}}, 'TARGET': 1}},
'qt5_translation': { 'flags' : [], 'qt5_translation': { 'flags' : [],
'kwargs': { 'TS_DIR': '1', 'kwargs': { 'OUTPUT_DIR': 1,
'LANGUAGES': '*', 'LANGUAGES': '*',
'SOURCES': '*', 'SOURCES': '*',
'TARGET': '1'}}, 'BASE_NAME': 1}},
'pvs_studio_add_target': { 'flags' : [ 'COMPILE_COMMANDS', 'pvs_studio_add_target': { 'flags' : [ 'COMPILE_COMMANDS',
'OUTPUT', 'OUTPUT',
'HIDE_HELP'], 'HIDE_HELP'],
@ -22,7 +30,7 @@ with section("parse"):
'DEPENDS': '*', 'DEPENDS': '*',
'FORMAT': '*', 'FORMAT': '*',
'MODE': '*', 'MODE': '*',
'TARGET': '*'}}, 'TARGET': 1}},
'write_compiler_detection_header': { 'flags' : [], 'write_compiler_detection_header': { 'flags' : [],
'kwargs': { 'COMPILERS': '*', 'kwargs': { 'COMPILERS': '*',
'FEATURES': '*', 'FEATURES': '*',
@ -48,11 +56,11 @@ with section("format"):
# If an argument group contains more than this many sub-groups (parg or kwarg # If an argument group contains more than this many sub-groups (parg or kwarg
# groups) then force it to a vertical layout. # groups) then force it to a vertical layout.
max_subgroups_hwrap = 2 max_subgroups_hwrap = 3
# If a positional argument group contains more than this many arguments, then # If a positional argument group contains more than this many arguments, then
# force it to a vertical layout. # force it to a vertical layout.
max_pargs_hwrap = 6 max_pargs_hwrap = 5
# If a cmdline positional group consumes more than this many lines without # If a cmdline positional group consumes more than this many lines without
# nesting, then invalidate the layout (and nest) # nesting, then invalidate the layout (and nest)