Skip to content

Commit 42e1855

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into hamt-1-and-2
2 parents 6376a3a + 076bda3 commit 42e1855

2,803 files changed

Lines changed: 3977984 additions & 73049 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cmake-format.yaml

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
_help_parse: Options affecting listfile parsing
2+
parse:
3+
_help_additional_commands:
4+
- Specify structure for custom cmake functions
5+
additional_commands:
6+
foo:
7+
flags:
8+
- BAR
9+
- BAZ
10+
kwargs:
11+
HEADERS: '*'
12+
SOURCES: '*'
13+
DEPENDS: '*'
14+
_help_override_spec:
15+
- Override configurations per-command where available
16+
override_spec: {}
17+
_help_vartags:
18+
- Specify variable tags.
19+
vartags: []
20+
_help_proptags:
21+
- Specify property tags.
22+
proptags: []
23+
_help_format: Options affecting formatting.
24+
format:
25+
_help_disable:
26+
- Disable formatting entirely, making cmake-format a no-op
27+
disable: false
28+
_help_line_width:
29+
- How wide to allow formatted cmake files
30+
line_width: 150
31+
_help_tab_size:
32+
- How many spaces to tab for indent
33+
tab_size: 2
34+
_help_max_subgroups_hwrap:
35+
- If an argument group contains more than this many sub-groups
36+
- (parg or kwarg groups) then force it to a vertical layout.
37+
max_subgroups_hwrap: 2
38+
_help_max_pargs_hwrap:
39+
- If a positional argument group contains more than this many
40+
- arguments, then force it to a vertical layout.
41+
max_pargs_hwrap: 6
42+
_help_max_rows_cmdline:
43+
- If a cmdline positional group consumes more than this many
44+
- lines without nesting, then invalidate the layout (and nest)
45+
max_rows_cmdline: 2
46+
_help_separate_ctrl_name_with_space:
47+
- If true, separate flow control names from their parentheses
48+
- with a space
49+
separate_ctrl_name_with_space: false
50+
_help_separate_fn_name_with_space:
51+
- If true, separate function names from parentheses with a
52+
- space
53+
separate_fn_name_with_space: false
54+
_help_dangle_parens:
55+
- If a statement is wrapped to more than one line, than dangle
56+
- the closing parenthesis on its own line.
57+
dangle_parens: false
58+
_help_dangle_align:
59+
- If the trailing parenthesis must be 'dangled' on its on
60+
- 'line, then align it to this reference: `prefix`: the start'
61+
- 'of the statement, `prefix-indent`: the start of the'
62+
- 'statement, plus one indentation level, `child`: align to'
63+
- the column of the arguments
64+
dangle_align: prefix
65+
_help_min_prefix_chars:
66+
- If the statement spelling length (including space and
67+
- parenthesis) is smaller than this amount, then force reject
68+
- nested layouts.
69+
min_prefix_chars: 4
70+
_help_max_prefix_chars:
71+
- If the statement spelling length (including space and
72+
- parenthesis) is larger than the tab width by more than this
73+
- amount, then force reject un-nested layouts.
74+
max_prefix_chars: 10
75+
_help_max_lines_hwrap:
76+
- If a candidate layout is wrapped horizontally but it exceeds
77+
- this many lines, then reject the layout.
78+
max_lines_hwrap: 2
79+
_help_line_ending:
80+
- What style line endings to use in the output.
81+
line_ending: unix
82+
_help_command_case:
83+
- Format command names consistently as 'lower' or 'upper' case
84+
command_case: canonical
85+
_help_keyword_case:
86+
- Format keywords consistently as 'lower' or 'upper' case
87+
keyword_case: unchanged
88+
_help_always_wrap:
89+
- A list of command names which should always be wrapped
90+
always_wrap: []
91+
_help_enable_sort:
92+
- If true, the argument lists which are known to be sortable
93+
- will be sorted lexicographicall
94+
enable_sort: true
95+
_help_autosort:
96+
- If true, the parsers may infer whether or not an argument
97+
- list is sortable (without annotation).
98+
autosort: false
99+
_help_require_valid_layout:
100+
- By default, if cmake-format cannot successfully fit
101+
- everything into the desired linewidth it will apply the
102+
- last, most agressive attempt that it made. If this flag is
103+
- True, however, cmake-format will print error, exit with non-
104+
- zero status code, and write-out nothing
105+
require_valid_layout: false
106+
_help_layout_passes:
107+
- A dictionary mapping layout nodes to a list of wrap
108+
- decisions. See the documentation for more information.
109+
layout_passes: {}
110+
_help_markup: Options affecting comment reflow and formatting.
111+
markup:
112+
_help_bullet_char:
113+
- What character to use for bulleted lists
114+
bullet_char: '*'
115+
_help_enum_char:
116+
- What character to use as punctuation after numerals in an
117+
- enumerated list
118+
enum_char: .
119+
_help_first_comment_is_literal:
120+
- If comment markup is enabled, don't reflow the first comment
121+
- block in each listfile. Use this to preserve formatting of
122+
- your copyright/license statements.
123+
first_comment_is_literal: false
124+
_help_literal_comment_pattern:
125+
- If comment markup is enabled, don't reflow any comment block
126+
- which matches this (regex) pattern. Default is `None`
127+
- (disabled).
128+
literal_comment_pattern: null
129+
_help_fence_pattern:
130+
- Regular expression to match preformat fences in comments
131+
- default= ``r'^\s*([`~]{3}[`~]*)(.*)$'``
132+
fence_pattern: ^\s*([`~]{3}[`~]*)(.*)$
133+
_help_ruler_pattern:
134+
- Regular expression to match rulers in comments default=
135+
- '``r''^\s*[^\w\s]{3}.*[^\w\s]{3}$''``'
136+
ruler_pattern: ^\s*[^\w\s]{3}.*[^\w\s]{3}$
137+
_help_explicit_trailing_pattern:
138+
- If a comment line matches starts with this pattern then it
139+
- is explicitly a trailing comment for the preceeding
140+
- argument. Default is '#<'
141+
explicit_trailing_pattern: '#<'
142+
_help_hashruler_min_length:
143+
- If a comment line starts with at least this many consecutive
144+
- hash characters, then don't lstrip() them off. This allows
145+
- for lazy hash rulers where the first hash char is not
146+
- separated by space
147+
hashruler_min_length: 10
148+
_help_canonicalize_hashrulers:
149+
- If true, then insert a space between the first hash char and
150+
- remaining hash chars in a hash ruler, and normalize its
151+
- length to fill the column
152+
canonicalize_hashrulers: true
153+
_help_enable_markup:
154+
- enable comment markup parsing and reflow
155+
enable_markup: false
156+
_help_lint: Options affecting the linter
157+
lint:
158+
_help_disabled_codes:
159+
- a list of lint codes to disable
160+
disabled_codes: []
161+
_help_function_pattern:
162+
- regular expression pattern describing valid function names
163+
function_pattern: '[0-9a-z_]+'
164+
_help_macro_pattern:
165+
- regular expression pattern describing valid macro names
166+
macro_pattern: '[0-9A-Z_]+'
167+
_help_global_var_pattern:
168+
- regular expression pattern describing valid names for
169+
- variables with global (cache) scope
170+
global_var_pattern: '[A-Z][0-9A-Z_]+'
171+
_help_internal_var_pattern:
172+
- regular expression pattern describing valid names for
173+
- variables with global scope (but internal semantic)
174+
internal_var_pattern: _[A-Z][0-9A-Z_]+
175+
_help_local_var_pattern:
176+
- regular expression pattern describing valid names for
177+
- variables with local scope
178+
local_var_pattern: '[a-z][a-z0-9_]+'
179+
_help_private_var_pattern:
180+
- regular expression pattern describing valid names for
181+
- privatedirectory variables
182+
private_var_pattern: _[0-9a-z_]+
183+
_help_public_var_pattern:
184+
- regular expression pattern describing valid names for public
185+
- directory variables
186+
public_var_pattern: '[A-Z][0-9A-Z_]+'
187+
_help_argument_var_pattern:
188+
- regular expression pattern describing valid names for
189+
- function/macro arguments and loop variables.
190+
argument_var_pattern: '[a-z][a-z0-9_]+'
191+
_help_keyword_pattern:
192+
- regular expression pattern describing valid names for
193+
- keywords used in functions or macros
194+
keyword_pattern: '[A-Z][0-9A-Z_]+'
195+
_help_max_conditionals_custom_parser:
196+
- In the heuristic for C0201, how many conditionals to match
197+
- within a loop in before considering the loop a parser.
198+
max_conditionals_custom_parser: 2
199+
_help_min_statement_spacing:
200+
- Require at least this many newlines between statements
201+
min_statement_spacing: 1
202+
_help_max_statement_spacing:
203+
- Require no more than this many newlines between statements
204+
max_statement_spacing: 2
205+
max_returns: 6
206+
max_branches: 12
207+
max_arguments: 5
208+
max_localvars: 15
209+
max_statements: 50
210+
_help_encode: Options affecting file encoding
211+
encode:
212+
_help_emit_byteorder_mark:
213+
- If true, emit the unicode byte-order mark (BOM) at the start
214+
- of the file
215+
emit_byteorder_mark: false
216+
_help_input_encoding:
217+
- Specify the encoding of the input file. Defaults to utf-8
218+
input_encoding: utf-8
219+
_help_output_encoding:
220+
- Specify the encoding of the output file. Defaults to utf-8.
221+
- Note that cmake only claims to support utf-8 so be careful
222+
- when using anything else
223+
output_encoding: utf-8
224+
_help_misc: Miscellaneous configurations options.
225+
misc:
226+
_help_per_command:
227+
- A dictionary containing any per-command configuration
228+
- overrides. Currently only `command_case` is supported.
229+
per_command: {}

.github/workflows/linux_build.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Linux Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
# base_build:
7+
# runs-on: ${{ matrix.os }}
8+
# strategy:
9+
# matrix:
10+
# os: [ubuntu-20.04]
11+
#
12+
# steps:
13+
# - uses: actions/checkout@v2
14+
#
15+
# - name: Set up Python 3.7
16+
# uses: actions/setup-python@v2
17+
# with:
18+
# python-version: 3.7
19+
#
20+
# - name: Install System Dependencies
21+
# shell: bash
22+
# run: |
23+
# set -x
24+
# echo "Using Apt to install dependencies"
25+
# sudo apt-get update
26+
# sudo apt-get install libxkbcommon-x11-0 xorg-dev libgl1-mesa-dev
27+
#
28+
# - name: Create Build Directory
29+
# run: cmake -E make_directory ./build/
30+
#
31+
# - name: Configure CMake
32+
# shell: bash
33+
# working-directory: ./build/
34+
# run: cmake -DCMAKE_BUILD_TYPE=Release -DLINK_WITH_PYTHON=ON ..
35+
#
36+
# - name: Build EnergyPlus
37+
# working-directory: ./build/
38+
# shell: bash
39+
# run: cmake --build . --target energyplus -j 2
40+
41+
alternate_build_configurations:
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
matrix:
45+
os: [ubuntu-20.04]
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
50+
- name: Install System Dependencies
51+
shell: bash
52+
run: |
53+
set -x
54+
echo "Using Apt to install dependencies"
55+
sudo apt-get update
56+
57+
- name: Create Build Directory
58+
run: cmake -E make_directory ./build/
59+
60+
- name: Configure CMake
61+
shell: bash
62+
working-directory: ./build/
63+
run: |
64+
cmake -DCMAKE_BUILD_TYPE=Release \
65+
-DLINK_WITH_PYTHON=OFF \
66+
-DUSE_PSYCHROMETRICS_CACHING=OFF \
67+
-DUSE_GLYCOL_CACHING=OFF \
68+
-OPENGL_REQUIRED=OFF \
69+
-USE_PSYCH_STATS=ON \
70+
-USE_PSYCH_ERRORS=OFF \
71+
../
72+
73+
- name: Build EnergyPlus
74+
working-directory: ./build/
75+
shell: bash
76+
run: cmake --build . --target energyplus -j 2

0 commit comments

Comments
 (0)