Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# Style base
BasedOnStyle: Google
Language: Cpp
Standard: c++20

# Style
IndentWidth: 4
TabWidth: 4
UseTab: Never

ColumnLimit: 100
BreakBeforeBraces: Attach
SpaceBeforeParens: ControlStatements

NamespaceIndentation: None
FixNamespaceComments: true

DerivePointerAlignment: false
PointerAlignment: Left
SortIncludes: true
IncludeBlocks: Preserve
AllowShortIfStatementsOnASingleLine: false
NamespaceIndentation: All
FixNamespaceComments: false

# C++ specific
Language: Cpp
SortIncludes: true
IncludeBlocks: Regroup

# Quoting style
AlwaysBreakTemplateDeclarations: Yes
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.{yml,yaml,json}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Bug report
about: Report a reproducible problem
---

**Basis version or commit:**
**Operating system and compiler:**

**Minimal program and command:**

**Expected result:**

**Actual result and full diagnostic:**
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/defect.md

This file was deleted.

19 changes: 7 additions & 12 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
---
name: Feature
about: Propose a new feature
title: ''
labels: 'feature'
assignees: ''

name: Feature proposal
about: Propose a focused improvement
---

**Problem Overview**
A clear and concise description of the feature.
**Problem or use case:**

**Proposed behaviour:**

**Work Required**
How will this be implemented (leave blank if unsure).
**Example program or command:**

**Acceptance Criteria**
What defines acceptance for this feature?
**Alternatives considered:**
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## What changed?

Describe the problem and resulting behaviour.

## Validation

Describe the relevant checks and tests. Run `just check` before requesting review.

## Related issue

Link the issue if applicable.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Check (${{ matrix.compiler }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
cxx: g++
- compiler: clang
cxx: clang++-18
env:
CXX: ${{ matrix.cxx }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install --yes cmake ninja-build g++ clang-18 clang-format-18 just
- run: just check
Loading