Skip to content

Commit 2dcd601

Browse files
author
Tomas Winkler
committed
igsc: version v0.1.4
IGSC version 0.1.4 Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
0 parents  commit 2dcd601

Some content is hidden

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

87 files changed

+16338
-0
lines changed

.bdsignore.all

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.bdsignore.all
2+
protex/*
3+
doc/*
4+
README.md
5+
CHANGELOG.md
6+
.editorconfig
7+
.git
8+
.gitlint
9+
.gitignore
10+
.gitattributes
11+
.gitlab-ci/*
12+
.gitlab-ci.yml
13+
.cmake-format.py

.cmake-format.py

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

.codespell-whitelist

Whitespace-only changes.

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (C) 2020 Intel Corporation
3+
4+
# To use this config with your editor, follow the instructions at:
5+
# http://editorconfig.org
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
insert_final_newline = false
12+
13+
[*.{c,h}]
14+
indent_style = space
15+
indent_size = 4
16+
17+
[{Makefile.*,*.mk}]
18+
indent_style = tab
19+
20+
[*.m4]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[{meson.build,meson_options.txt}]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[{CMakeLists.txt, *.cmake}]
29+
indent_style = space
30+
indent_size = 4
31+

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text=auto
2+
*.svg text
3+
*.png binary
4+
# Don't export CI files
5+
.gitlab-ci.yml export-ignore
6+
.gitlab-ci export-ignore

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
CMakeLists.txt.user
7+
CMakeCache.txt
8+
CMakeFiles
9+
CMakeScripts
10+
Testing
11+
Makefile
12+
cmake_install.cmake
13+
install_manifest.txt
14+
compile_commands.json
15+
CTestTestfile.cmake
16+
_deps
17+
18+
# Prerequisites
19+
*.d
20+
21+
# Object files
22+
*.o
23+
*.ko
24+
*.obj
25+
*.elf
26+
27+
# Linker output
28+
*.ilk
29+
*.map
30+
*.exp
31+
32+
# Precompiled Headers
33+
*.gch
34+
*.pch
35+
36+
# Libraries
37+
*.lib
38+
*.a
39+
*.la
40+
*.lo
41+
42+
# Shared objects (inc. Windows DLLs)
43+
*.dll
44+
*.so
45+
*.so.*
46+
*.dylib
47+
48+
# Executables
49+
*.exe
50+
*.out
51+
*.app
52+
*.i*86
53+
*.x86_64
54+
*.hex
55+
56+
# Debug files
57+
*.dSYM/
58+
*.su
59+
*.idb
60+
*.pdb

0 commit comments

Comments
 (0)