Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
80b30161
Commit
80b30161
authored
5 years ago
by
Alice Russell
Browse files
Options
Downloads
Patches
Plain Diff
add cmake-format json file
parent
f2768501
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cmake-format
+0
-81
0 additions, 81 deletions
.cmake-format
.cmake-format.json
+39
-0
39 additions, 0 deletions
.cmake-format.json
with
39 additions
and
81 deletions
.cmake-format
deleted
100644 → 0
+
0
−
81
View file @
f2768501
# How wide to allow formatted cmake files
line_width = 80
# How many spaces to tab for indent
tab_size = 2
# If arglists are longer than this, break them always
max_subargs_per_line = 3
# 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 it's own line
dangle_parens = False
# What character to use for bulleted lists
bullet_char = '*'
# What character to use as punctuation after numerals in an enumerated list
enum_char = '.'
# What style line endings to use in the output.
line_ending = 'unix'
# Format command names consistently as 'lower' or 'upper' case
command_case = 'lower'
# Format keywords consistently as 'lower' or 'upper' case
keyword_case = 'unchanged'
# Specify structure for custom cmake functions
additional_commands = {
"foo": {
"flags": [
"BAR",
"BAZ"
],
"kwargs": {
"HEADERS": "*",
"SOURCES": "*",
"DEPENDS": "*"
}
}
}
# A list of command names which should always be wrapped
always_wrap = []
# Specify the order of wrapping algorithms during successive reflow attempts
algorithm_order = [0, 1, 2, 3]
# enable comment markup parsing and reflow
enable_markup = True
# If comment markup is enabled, don't reflow the first comment block in
# eachlistfile. Use this to preserve formatting of your
# copyright/licensestatements.
first_comment_is_literal = False
# If comment markup is enabled, don't reflow any comment block which matchesthis
# (regex) pattern. Default is `None` (disabled).
literal_comment_pattern = None
# Regular expression to match preformat fences in comments
# default=r'^\s*([`~]{3}[`~]*)(.*)$'
fence_pattern = '^\\s*([`~]{3}[`~]*)(.*)$'
# Regular expression to match rulers in comments
# default=r'^\s*[^\w\s]{3}.*[^\w\s]{3}$'
ruler_pattern = '^\\s*[^\\w\\s]{3}.*[^\\w\\s]{3}$'
# If true, emit the unicode byte-order mark (BOM) at the start of the file
emit_byteorder_mark = False
# A dictionary containing any per-command configuration overrides. Currently
# only `command_case` is supported.
per_command = {}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.cmake-format.json
0 → 100644
+
39
−
0
View file @
80b30161
"line_width"
:
80
,
"tab_size"
:
2
,
"max_subargs_per_line"
:
3
,
"separate_ctrl_name_with_space"
:
false
,
"separate_fn_name_with_space"
:
false
,
"dangle_parens"
:
false
,
"bullet_char"
:
"*"
,
"enum_char"
:
"."
,
"line_ending"
:
"unix"
,
"command_case"
:
"lower"
,
"keyword_case"
:
"unchanged"
,
"additional_commands"
:
{
"foo"
:
{
"flags"
:
[
"BAR"
,
"BAZ"
],
"kwargs"
:
{
"HEADERS"
:
"*"
,
"SOURCES"
:
"*"
,
"DEPENDS"
:
"*"
}
}
}
,
"always_wrap"
:
[]
,
"algorithm_order"
:
[
0
,
1
,
2
,
3
]
,
"enable_markup"
:
true
,
"first_comment_is_literal"
:
false
,
"literal_comment_pattern"
:
null
,
"fence_pattern"
:
"^
\\
s*([`~]{3}[`~]*)(.*)$"
,
"ruler_pattern"
:
"^
\\
s*[^
\\
w
\\
s]{3}.*[^
\\
w
\\
s]{3}$"
,
"emit_byteorder_mark"
:
false
,
"per_command"
:
{}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment