Skip to content

Commit 1f17630

Browse files
Merge pull request #11 from NikolasK-source/main
update to v1.1.0
2 parents e11facb + 736219d commit 1f17630

32 files changed

+954
-456
lines changed

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ AllowAllConstructorInitializersOnNextLine: 'true'
1212
AllowAllParametersOfDeclarationOnNextLine: 'true'
1313
AllowShortBlocksOnASingleLine: 'true'
1414
AllowShortCaseLabelsOnASingleLine: 'true'
15-
AllowShortFunctionsOnASingleLine: All
15+
AllowShortFunctionsOnASingleLine: InlineOnly
1616
AllowShortIfStatementsOnASingleLine: Always
1717
AllowShortLambdasOnASingleLine: All
1818
AlwaysBreakAfterReturnType: None
@@ -48,4 +48,4 @@ SpacesInAngles: 'false'
4848
SpacesInCStyleCastParentheses: 'false'
4949
Standard: Cpp11
5050
TabWidth: '4'
51-
UseTab: Never
51+
UseTab: Never

.clang-tidy

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Checks: 'bugprone-*,
2+
cert-dcl21-cpp,
3+
cert-dcl58-cpp,
4+
cert-err34-c,
5+
cert-err52-cpp,
6+
cert-err60-cpp,
7+
cert-flp30-c,
8+
cert-msc50-cpp,
9+
cert-msc51-cpp,
10+
cert-str34-c,
11+
cppcoreguidelines-*,
12+
clang-analyzer-*,
13+
google-default-arguments,
14+
google-explicit-constructor,
15+
google-runtime-operator,
16+
hicpp-exception-baseclass,
17+
hicpp-multiway-paths-covered,
18+
misc-misplaced-const,
19+
misc-new-delete-overloads,
20+
misc-no-recursion,
21+
misc-non-copyable-objects,
22+
misc-throw-by-value-catch-by-reference,
23+
misc-unconventional-assign-operator,
24+
misc-uniqueptr-reset-release,
25+
modernize-*,
26+
mpi-buffer-deref,
27+
mpi-type-mismatch,
28+
openmp-use-default-none,
29+
portability-*,
30+
performance-*,
31+
readability-avoid-const-params-in-decls,
32+
readability-const-return-type,
33+
readability-container-size-empty,
34+
readability-convert-member-functions-to-static,
35+
readability-delete-null-pointer,
36+
readability-deleted-default,
37+
readability-inconsistent-declaration-parameter-name,
38+
readability-make-member-function-const,
39+
readability-misleading-indentation,
40+
readability-misplaced-array-index,
41+
readability-non-const-parameter,
42+
readability-redundant-control-flow,
43+
readability-redundant-declaration,
44+
readability-redundant-function-ptr-dereference,
45+
readability-redundant-smartptr-get,
46+
readability-redundant-string-cstr,
47+
readability-redundant-string-init,
48+
readability-simplify-subscript-expr,
49+
readability-static-accessed-through-instance,
50+
readability-static-definition-in-anonymous-namespace,
51+
readability-string-compare,
52+
readability-uniqueptr-delete-release,
53+
readability-use-anyofallof
54+
-modernize-use-trailing-return-type
55+
-bugprone-exception-escape'
56+
WarningsAsErrors: '*,
57+
-modernize-*,
58+
-readability-*
59+
-cppcoreguidelines-avoid-magic-numbers,
60+
-cppcoreguidelines-pro-type-vararg'
61+
HeaderFilterRegex: ''

.clang-tidy-noerrors

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Checks: 'bugprone-*,
2+
cert-dcl21-cpp,
3+
cert-dcl58-cpp,
4+
cert-err34-c,
5+
cert-err52-cpp,
6+
cert-err60-cpp,
7+
cert-flp30-c,
8+
cert-msc50-cpp,
9+
cert-msc51-cpp,
10+
cert-str34-c,
11+
cppcoreguidelines-*,
12+
clang-analyzer-*,
13+
google-default-arguments,
14+
google-explicit-constructor,
15+
google-runtime-operator,
16+
hicpp-exception-baseclass,
17+
hicpp-multiway-paths-covered,
18+
misc-misplaced-const,
19+
misc-new-delete-overloads,
20+
misc-no-recursion,
21+
misc-non-copyable-objects,
22+
misc-throw-by-value-catch-by-reference,
23+
misc-unconventional-assign-operator,
24+
misc-uniqueptr-reset-release,
25+
modernize-*,
26+
mpi-buffer-deref,
27+
mpi-type-mismatch,
28+
openmp-use-default-none,
29+
portability-*,
30+
performance-*,
31+
readability-avoid-const-params-in-decls,
32+
readability-const-return-type,
33+
readability-container-size-empty,
34+
readability-convert-member-functions-to-static,
35+
readability-delete-null-pointer,
36+
readability-deleted-default,
37+
readability-inconsistent-declaration-parameter-name,
38+
readability-make-member-function-const,
39+
readability-misleading-indentation,
40+
readability-misplaced-array-index,
41+
readability-non-const-parameter,
42+
readability-redundant-control-flow,
43+
readability-redundant-declaration,
44+
readability-redundant-function-ptr-dereference,
45+
readability-redundant-smartptr-get,
46+
readability-redundant-string-cstr,
47+
readability-redundant-string-init,
48+
readability-simplify-subscript-expr,
49+
readability-static-accessed-through-instance,
50+
readability-static-definition-in-anonymous-namespace,
51+
readability-string-compare,
52+
readability-uniqueptr-delete-release,
53+
readability-use-anyofallof
54+
-modernize-use-trailing-return-type
55+
-bugprone-exception-escape'
56+
WarningsAsErrors: ''
57+
HeaderFilterRegex: ''

.github/workflows/clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
with:
1212
clang-format-version: '14'
1313
check-path: 'src'
14-
14+

.github/workflows/cmake.yml

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CMake
22

3-
on:
4-
push:
5-
branches: [ "main", "development" ]
6-
pull_request:
7-
branches: [ "main" ]
3+
on: [push, pull_request]
84

95
env:
106
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -20,11 +16,43 @@ jobs:
2016
steps:
2117
- uses: actions/checkout@v3
2218

23-
- name: Init submodules
24-
run: git submodule init
25-
26-
- name: Update submodules
27-
run: git submodule update
19+
- name: create tmp dir
20+
run: mkdir tmp
21+
22+
- name: update
23+
run: |
24+
sudo apt update
25+
sudo apt upgrade -y
26+
27+
- name: install cxxopts
28+
run: |
29+
git clone https://github.com/jarro2783/cxxopts.git tmp/cxxopts
30+
cd tmp/cxxopts
31+
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
32+
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
33+
cmake --build build
34+
sudo cmake --install build
35+
cd -
36+
37+
- name: install cxxshm
38+
run: |
39+
git clone https://github.com/NikolasK-source/cxxshm.git tmp/cxxshm
40+
cd tmp/cxxshm
41+
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
42+
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
43+
cmake --build build
44+
sudo cmake --install build
45+
cd -
46+
47+
- name: install cxxsemaphore
48+
run: |
49+
git clone https://github.com/NikolasK-source/cxxsemaphore.git tmp/cxxsemaphore
50+
cd tmp/cxxsemaphore
51+
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
52+
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
53+
cmake --build build
54+
sudo cmake --install build
55+
cd -
2856
2957
- name: Configure CMake
3058
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
on:
2-
push:
3-
branches: [ "main", "development" ]
4-
pull_request:
1+
on: [push, pull_request]
52
name: Flatpak_test
63
jobs:
74
flatpak:
@@ -11,20 +8,14 @@ jobs:
118
image: bilelmoussaoui/flatpak-github-actions:freedesktop-21.08
129
options: --privileged
1310
steps:
14-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1512

1613
- name: Git config
1714
run: git config --global --add safe.directory /__w/write_shm/write_shm
1815

19-
- name: Init submodules
20-
run: git submodule init
21-
22-
- name: Update submodules
23-
run: git submodule update
24-
2516
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
2617
name: "Build"
2718
with:
2819
bundle: test_write-shm.flatpak
2920
manifest-path: network.koesling.test-write-shm.yml
30-
cache-key: flatpak-builder-${{ github.sha }}
21+
cache-key: flatpak-builder-${{ github.sha }}

.github/workflows/flatpak_release.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# general
22
build*
33
docs/*
4+
docs_doxy
45

56
!docs/index.md
67
!docs/_config.yml

.gitmodules

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
[submodule "libs/cxxopts"]
2-
path = libs/cxxopts
3-
url = https://github.com/NikolasK-source/cxxopts.git
4-
[submodule "libs/cxxshm"]
5-
path = libs/cxxshm
6-
url = https://github.com/NikolasK-source/cxxshm.git
7-
[submodule "libs/cxxsemaphore"]
8-
path = libs/cxxsemaphore
9-
url = https://github.com/NikolasK-source/cxxsemaphore.git

0 commit comments

Comments
 (0)