Skip to content

Commit 599c446

Browse files
committed
Rewrite app in C++
Signed-off-by: Kaito Udagawa <umireon@kaito.tokyo>
1 parent 84f582f commit 599c446

61 files changed

Lines changed: 1650 additions & 1610 deletions

Some content is hidden

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

.clang-format

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2026 Kaito Udagawa <umireon@kaito.tokyo>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
BasedOnStyle: LLVM
6+
Standard: c++20
7+
ColumnLimit: 120
8+
InsertNewlineAtEOF: true

.clang-tidy

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: 2026 Kaito Udagawa <umireon@kaito.tokyo>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
Checks: >
6+
bugprone-*,
7+
clang-analyzer-*,
8+
performance-*,
9+
modernize-*,
10+
portability-*,
11+
-portability-avoid-pragma-once
12+
13+
WarningsAsErrors: ""
14+
HeaderFilterRegex: ".*"
15+
FormatStyle: file

.clangd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-FileCopyrightText: 2026 Kaito Udagawa <umireon@kaito.tokyo>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
CompileFlags:
6+
CompilationDatabase: build

.github/instructions/swift6.instructions.md

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

.github/workflows/check.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
contents: read
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
37+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3838
with:
3939
persist-credentials: false
4040

@@ -53,35 +53,14 @@ jobs:
5353
shell: bash --noprofile --norc -euo pipefail -O nullglob {0}
5454
run: reuse lint
5555

56-
check-swift-format:
57-
runs-on: ubuntu-24.04
58-
timeout-minutes: 10
59-
permissions:
60-
contents: read
61-
steps:
62-
- name: Checkout
63-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
64-
with:
65-
persist-credentials: false
66-
67-
- name: Print swift-format version
68-
shell: bash --noprofile --norc -euo pipefail -O nullglob {0}
69-
run: |
70-
swift format --version
71-
72-
- name: Check with swift-format
73-
shell: bash --noprofile --norc -euo pipefail -O nullglob {0}
74-
run: |
75-
swift format lint --recursive . --strict
76-
7756
check-yamllint:
7857
runs-on: ubuntu-24.04
7958
timeout-minutes: 10
8059
permissions:
8160
contents: read
8261
steps:
8362
- name: Checkout
84-
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
63+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
8564
with:
8665
persist-credentials: false
8766

@@ -99,7 +78,6 @@ jobs:
9978
name: Accept Check CI
10079
needs:
10180
- check-reuse
102-
- check-swift-format
10381
- check-yamllint
10482
runs-on: ubuntu-slim
10583
permissions: {}

.github/workflows/swift.yml

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

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
.DS_Store
6-
/.build/
7-
/.swiftpm/
6+
/build/

.swift-format

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

.vscode/REUSE.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version = 1
2+
3+
[[annotations]]
4+
path = "*"
5+
SPDX-FileCopyrightText = "2026 Kaito Udagawa <umireon@kaito.tokyo>"
6+
SPDX-License-Identifier = "Apache-2.0"

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"llvm-vs-code-extensions.vscode-clangd",
4+
"ms-vscode.cmake-tools",
5+
"vadimcn.vscode-lldb"
6+
]
7+
}

0 commit comments

Comments
 (0)