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
15 changes: 13 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
DEBIAN_FRONTEND: noninteractive
CMAKE_GENERATOR: Ninja
DEFAULT_CXX_STANDARD: 20
DEFAULT_LLVM_VERSION: 20
DEFAULT_LLVM_VERSION: 21
DEFAULT_GCC_VERSION: 14

concurrency:
Expand All @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
compiler: [clang, gcc]
version: [12, 13, 14, 16, 17, 18, 19, 20]
version: [12, 13, 14, 16, 17, 18, 19, 20, 21]
cxx_standard: [20]
stdlib: [libstdc++, libc++]
build_type: [Debug]
Expand All @@ -36,6 +36,15 @@ jobs:
cc: "clang"
cxx: "clang++"
cxx_flags: "-stdlib=libstdc++"
- version: 21
compiler: clang
install: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 21
toolchain_root: "/usr/lib/llvm-21"
- version: 21
compiler: clang
stdlib: libc++
install: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 21 && sudo apt install -y libc++-21-dev libc++abi-21-dev
cxx_flags: "-stdlib=libc++"
- version: 20
compiler: clang
install: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 20 all
Expand Down Expand Up @@ -101,6 +110,8 @@ jobs:
cxx: "g++-12"
cxx_flags: ""
exclude:
- compiler: gcc
version: 21
- compiler: gcc
version: 20
- compiler: gcc
Expand Down
4 changes: 2 additions & 2 deletions docs/intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ file for information.

The following compilers are supported:

* clang 14 thru 17
* GCC 12 thru 13
* clang 14 thru 21
* GCC 12 thru 14

C++20 is required.

Expand Down
2 changes: 1 addition & 1 deletion include/flow/step.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ template <stdx::ct_string Type, stdx::ct_string Name, typename F>
cib::detail::always_condition_t, F>{};
}

constexpr auto empty_func = []() {};
constexpr auto empty_func = []() -> void {};
} // namespace detail

template <stdx::ct_string Name, typename F>
Expand Down
2 changes: 1 addition & 1 deletion include/msg/field.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ struct bits_locator_t {
template <std::uint32_t NumBits>
constexpr static auto fits_inside() -> bool {
constexpr auto Msb = Lsb + BitSize - 1;
return Index * 32 + Msb <= NumBits;
return (Index * 32) + Msb <= NumBits;
}

template <typename T> constexpr static auto extent_in() -> std::size_t {
Expand Down
5 changes: 2 additions & 3 deletions include/msg/indexed_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ struct indexed_builder

constexpr auto baked_indices =
temp_indices.apply([&]<typename... I>(I...) {
return indices {
return indices{
index{typename I::field_type{},
make_index_lookup.template operator()<I>(
entry_index_seq.template operator()<I>())}...
};
entry_index_seq.template operator()<I>())}...};
});

constexpr auto num_callbacks = BuilderValue::value.callbacks.size();
Expand Down
Loading