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
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -11,26 +11,28 @@ repos:
exclude: ^\.clang-(format|tidy)$
- id: check-added-large-files

# Clang-format for C++
# This brings in a portable version of clang-format.
# See also: https://github.com/ssciwr/clang-format-wheel
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.7
rev: v21.1.7
hooks:
- id: clang-format
types_or: [c++, c, json]
exclude: docs/TODO.json

# CMake linting and formatting
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.20.1
rev: 0.23.2
hooks:
- id: gersemi
name: CMake linting

# TODO: Markdown linting
# Markdown linting
# Config file: .markdownlint.yaml
# Commented out to disable this by default. Uncomment to enable markdown linting.
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.43.0
# rev: v0.46.0
# hooks:
# - id: markdownlint

Expand All @@ -40,3 +42,5 @@ repos:
- id: codespell
files: ^.*\.(cmake|cpp|hpp|txt|md|json|in|yaml|yml)$
args: ["-w", "--ignore-words", ".codespellignore" ]

exclude: 'infra/'
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# cmake-format: on

cmake_minimum_required(VERSION 3.25...3.31)
cmake_minimum_required(VERSION 3.25...4.2)

project(beman_execution VERSION 0.0.1 LANGUAGES CXX)

Expand Down
3 changes: 1 addition & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# cmake-format: on

list(
APPEND
EXAMPLES
APPEND EXAMPLES
stackoverflow
inspect
playground
Expand Down
11 changes: 5 additions & 6 deletions include/beman/execution/detail/transform_sender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ template <typename Domain, ::beman::execution::sender Sender, typename... Env>
::std::remove_cvref_t<decltype(::beman::execution::default_domain{}.transform_sender(
::std::declval<Sender>(), ::std::declval<Env>()...))>>
constexpr auto
transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward<Sender>(sender)))
-> ::beman::execution::sender auto {
transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward<Sender>(sender)))
-> ::beman::execution::sender auto {
return sender;
}

Expand Down Expand Up @@ -99,10 +99,9 @@ template <typename Domain, ::beman::execution::sender Sender, typename... Env>
::std::same_as<::std::remove_cvref_t<Sender>,
::std::remove_cvref_t<decltype(::beman::execution::default_domain{}.transform_sender(
::std::declval<Sender>(), ::std::declval<Env>()...))>>
constexpr auto transform_sender(Domain,
Sender&& sender,
const Env&...) noexcept(noexcept(::std::forward<Sender>(sender)))
-> ::beman::execution::sender decltype(auto) {
constexpr auto
transform_sender(Domain, Sender&& sender, const Env&...) noexcept(noexcept(::std::forward<Sender>(sender)))
-> ::beman::execution::sender decltype(auto) {
return ::std::forward<Sender>(sender);
}

Expand Down
5 changes: 2 additions & 3 deletions tests/beman/execution/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# src/beman/execution/tests/CMakeLists.txt
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
cmake_minimum_required(VERSION 3.25...3.31)
cmake_minimum_required(VERSION 3.25...4.2)

project(beman_execution_tests LANGUAGES CXX)

Expand All @@ -10,8 +10,7 @@ endif()

list(APPEND todo exec-associate.test)
list(
APPEND
execution_tests
APPEND execution_tests
issue-174.test
issue-186.test
exec-scope-counting.test
Expand Down