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
9 changes: 9 additions & 0 deletions .beman-tidy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# This is the config file for beman-tidy, which checks compliance with the Beman Standard (https://github.com/bemanproject/beman/blob/main/docs/beman_standard.md)
# Check documentation for beman-tidy here:
# https://github.com/bemanproject/beman-tidy/blob/main/README.md

disabled_rules: []
ignored_paths:
- infra/
1 change: 1 addition & 0 deletions .github/workflows/pre-commit-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Lint Check (pre-commit)

on:
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/pre-commit.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand All @@ -19,10 +20,12 @@ repos:
files: ^.*\.(cmake|cpp|cppm|hpp|txt|md|mds|json|js|in|yaml|yml|py|toml)$
args: ["--write", "--ignore-words", ".codespellignore" ]

# Beman Standard checking via beman-tidy
- repo: https://github.com/bemanproject/beman-tidy
rev: v0.4.0
rev: v0.5.2
hooks:
- id: beman-tidy
args: [".", "--verbose"]

# Clang-format for C++
# This brings in a portable version of clang-format.
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ option(
${PROJECT_IS_TOP_LEVEL}
)

# Match CMake presets. MSVC CI enables modules via Ninja by default, which
# triggers execution C7760 in product_type.cppm (pre-existing on main).
set(BEMAN_USE_MODULES OFF CACHE BOOL "Build CXX modules" FORCE)

include(FetchContent)

FetchContent_Declare(
Expand All @@ -43,6 +47,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(execution)

add_subdirectory(src/beman/task)
add_library(beman::task ALIAS beman.task)

#===============================================================================
# NOTE: this must be done before tests! CK
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
![Continuous Integration Tests](https://github.com/bemanproject/task/actions/workflows/ci_tests.yml/badge.svg)
![Standard Target](https://github.com/bemanproject/beman/blob/main/images/badges/cpp26.svg)
![Coverage](https://coveralls.io/repos/github/bemanproject/task/badge.svg?branch=main)
![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)
[![Library Status](https://raw.githubusercontent.com/bemanproject/beman/refs/heads/main/images/badges/beman_badge-beman_library_under_development.svg)](https://github.com/bemanproject/beman/blob/main/docs/beman_library_maturity_model.md#the-beman-library-maturity-model)

`beman::execution::task<T, Context>` is a class template which
is used as the the type of coroutine tasks. The corresponding objects
Expand Down
1 change: 0 additions & 1 deletion src/beman/task/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

add_library(beman.task STATIC)
add_library(beman::task ALIAS beman.task)

target_sources(beman.task PRIVATE task.cpp)

Expand Down
2 changes: 2 additions & 0 deletions tests/beman/task/msvc-asan-issue.test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <coroutine>

struct task {
Expand Down
Loading