Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
36ca7a3
wip: move to C++23
0-Sacha Nov 24, 2024
e990ac1
wip: use std::expected for error handling
0-Sacha Nov 24, 2024
e76ae94
fix: it compile now
0-Sacha Nov 24, 2024
ace851f
fix: add SF_TRY() for forgotten functions
0-Sacha Nov 25, 2024
048db30
fix: clang compile
0-Sacha Nov 26, 2024
d5352e8
fix: now run... sort of
0-Sacha Nov 27, 2024
27f6470
... wip ...
0-Sacha Nov 28, 2024
fb4690b
feat: finally, issues fixed !
0-Sacha Dec 1, 2024
72b478a
wip: update CI; Windows MSVC does not support std::expected (C++23)
0-Sacha Dec 1, 2024
9303921
wip: update to gcc 14
0-Sacha Dec 1, 2024
68b97fc
wip: test with Gcc 13 on github
0-Sacha Dec 1, 2024
7d4684c
wip: use universe repo for apt
0-Sacha Dec 1, 2024
761ed2c
...
0-Sacha Dec 1, 2024
776c925
use gcc13
0-Sacha Dec 1, 2024
386720b
...
0-Sacha Dec 1, 2024
a3f381c
wip: using snake case file names
0-Sacha Mar 22, 2025
cfbf8cb
wip: rename to lowercase
0-Sacha Mar 23, 2025
1673a97
feat: CI
0-Sacha Mar 23, 2025
2b7b5c3
wip: examples now run correctly
0-Sacha Mar 23, 2025
7990cc9
fix: integer write
0-Sacha Mar 23, 2025
c2b048b
wip: CI
0-Sacha Mar 23, 2025
2bfd8c3
wip: from cpp to cxx
0-Sacha Mar 23, 2025
dcf24ca
wip: includes path changes from `h` to `hxx`
0-Sacha Mar 23, 2025
d61fdae
feat: save fix `clang-tidy`
0-Sacha Mar 23, 2025
ec5d411
fix: clang-format
0-Sacha Mar 23, 2025
edd5884
fix: update MODULE deps
0-Sacha Mar 23, 2025
6bd7dda
fix: test with clang-20
0-Sacha Mar 23, 2025
89f95af
wip: SF_VERIFY
0-Sacha Mar 23, 2025
1a9c5f8
feat: remove expected :( `need c++23; slower perf; exception aren't t…
0-Sacha Mar 24, 2025
6e3a157
fix: CI
0-Sacha Mar 26, 2025
cec7c4e
wip: nested specs using `:`
0-Sacha Mar 26, 2025
2d74619
fix: specs
0-Sacha Mar 26, 2025
d184306
fix: clang-format
0-Sacha Mar 26, 2025
581f271
fix: MSVC
0-Sacha Mar 26, 2025
a9562f6
fix: remove false positive clang-tidy
0-Sacha Apr 1, 2025
01ce9e1
fix: remove mutual inclusion
0-Sacha Apr 1, 2025
19cfc56
fix: remove mutual inclusion
0-Sacha Apr 1, 2025
63e641e
feat: clang-tidy for c++ checks
0-Sacha Apr 1, 2025
5b0db59
fix: clang-format
0-Sacha Apr 1, 2025
ccea07b
fix: update index
0-Sacha Apr 1, 2025
01a531f
fix: clang-format ci
0-Sacha Apr 1, 2025
2ae0d41
fix: clang-format ci
0-Sacha Apr 1, 2025
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
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ common:tidy_format_error --aspects_parameters=enable_error=True

# Winlibs
common:winlibs-gcc --extra_toolchains=@winlibs//:gcc-toolchain
common:winlibs-clang --extra_toolchains=@pthread-winlibs//:clang-toolchain
common:winlibs-clang --extra_toolchains=@winlibs//:clang-toolchain

# BuildBuddy
common:linux --workspace_status_command=$(pwd)/.buildbuddy/workspace_status.sh
Expand Down
8 changes: 4 additions & 4 deletions .buildkite/linux_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ agents:
steps:
- label: ":bazel: Build and Test on gcc (W asan)"
commands:
- CC=gcc bazelisk build --features=asan //:StreamFormatTests
- CC=gcc bazelisk test --features=asan //:StreamFormatTests
- CC=gcc bazelisk build --features=asan //tests:units
- CC=gcc bazelisk test --features=asan //tests:units

- label: ":bazel: Build and Test on Clang (W asan)"
commands:
- CC=clang bazelisk build --features=asan //:StreamFormatTests
- CC=clang bazelisk test --features=asan //:StreamFormatTests
- CC=clang-20 bazelisk build --features=asan //tests:units
- CC=clang-20 bazelisk test --features=asan //tests:units
2 changes: 1 addition & 1 deletion .buildkite/template.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "StreamFormat"
name: "stream"
steps:
- label: ":pipeline: Launch Embbeded Pipeline"
command: "buildkite-agent pipeline upload .builkite/pipeline.yml"
8 changes: 2 additions & 6 deletions .buildkite/windows_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ agents:
queue: "agent-runners-windows-amd64"

steps:
- label: ":bazel: Build And Test MSVC"
commands:
- bazelisk test //:StreamFormatTests

- label: ":bazel: Build And Test Winlibs/clang"
commands:
- bazelisk build --config=winlibs-clang //:StreamFormatTests
- bazelisk build --config=winlibs-clang //tests:units
- label: ":bazel: Build And Test Winlibs/gcc"
commands:
- bazelisk build --config=winlibs-gcc //:StreamFormatTests
- bazelisk build --config=winlibs-gcc //tests:units
37 changes: 0 additions & 37 deletions .github/workflows/CodeChecker.yml.nop

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/StreamFormat.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: linter

on:
push:
branches:
- '**'

jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install clang-format...
run: sudo apt install clang-format
- name: Version
run: clang-format --version
- run: ./conf/scripts/clang-format.py

clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Install clang-tidy...
run: sudo apt install clang-tidy
- name: Version
run: clang-tidy --version
- name: Running clang-tidy...
run: ./scripts/clang-tidy.sh
48 changes: 48 additions & 0 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests Linux

on:
push:
branches:
- '**'

jobs:
ubuntu-latest-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Version
run: gcc --version
- name: Building...
run: CC=gcc bazelisk build //tests:units
- name: Testing (asan)...
run: CC=gcc bazelisk test //tests:units
- name: Testing (asan)...
run: CC=gcc bazelisk test --features=asan //tests:units

ubuntu-latest-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Install clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 20
- name: Version
run: clang --version
- name: Building...
run: CC=clang++-20 bazelisk build //tests:units
- name: Testing...
run: CC=clang++-20 bazelisk test //tests:units
- name: Testing (asan)...
run: CC=clang++-20 bazelisk test --features=asan //tests:units
35 changes: 35 additions & 0 deletions .github/workflows/tests_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Tests Windows

on:
push:
branches:
- '**'

jobs:
windows-latest-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Building...
run: bazelisk build //tests:units
- name: Testing...
run: bazelisk test //tests:units

windows-latest-winlibs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Build winlibs/clang...
run: bazelisk build --config=winlibs-clang //tests:units
- name: Build winlibs/gcc...
run: bazelisk build --config=winlibs-gcc //tests:units
14 changes: 6 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@

# bazel
MODULE.bazel.lock
bazel-bin
bazel-out
bazel-streamformat
bazel-StreamFormat
bazel-examples
bazel-Examples
bazel-testlogs
*.lock
bazel-*

.coverage
.codechecker
compile_commands.json

# VS
.vs
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "conf"]
path = conf
url = git@github.com:0-Sacha/conf.git
21 changes: 5 additions & 16 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,16 @@
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")

cc_library(
name = "StreamFormat",
srcs = glob([ "src/**/*.h", "src/**/*.cpp" ]),
hdrs = glob([ "src/**/*.h" ]),
name = "stream",
srcs = glob([ "src/**/*.cxx" ]),
hdrs = glob([ "src/**/*.hxx" ]),
includes = [ "src/" ],
copts = select({
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++latest"],
"//conditions:default": ["-std=c++20"],
}),
strip_include_prefix = "src",
include_prefix = "StreamFormat",
include_prefix = "stream",
linkstatic = True,
visibility = ["//visibility:public"],
)

cc_test(
name = "StreamFormatTests",
srcs = glob([ "Tests/**/*.h", "Tests/**/*.cpp" ]),
copts = select({
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ ":StreamFormat" ],
visibility = ["//visibility:public"],
)
15 changes: 0 additions & 15 deletions Examples/CompilerInfo/BUILD.bazel

This file was deleted.

26 changes: 0 additions & 26 deletions Examples/CompilerInfo/main.cpp

This file was deleted.

Loading