Skip to content

Commit fc8d510

Browse files
committed
Add codespell target to Makefile
1 parent 270d10d commit fc8d510

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
SANITIZERS = release debug msan asan usan tsan
5-
.PHONY: default run update check ce todo distclean clean build test all $(SANITIZERS)
5+
.PHONY: default run update check ce todo distclean clean codespell build test all $(SANITIZERS)
66

77
COMPILER=system
88
CXX_BASE=$(CXX:$(dir $(CXX))%=%)
@@ -79,6 +79,9 @@ check:
7979
< $$h sed -n "/^ *# *include <Beman\//s@.*[</]Beman/\(.*\).hpp>.*@$$from \1@p"; \
8080
done | tsort > /dev/null
8181

82+
codespell:
83+
codespell -L statics
84+
8285
todo:
8386
bin/mk-todo.py
8487

docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When an asynchronous operation completes it _signals_ its completion by calling
1919
</details>
2020
<details>
2121
<summary>environment</summary>
22-
The term _enviroment_ refers to the bag of properties associated with an <code>_object_</code> by the call <code><a href=‘#get-env’>std::execution::get_env</a>(_object_)</code>. By default the environment for objects is empty (<code><a href=‘#empty-env’>std::execution::empty_env</a></code>). In particular, enviroments associated with <code><a href=‘#receiver’>receiver</a></code>s are used to provide access to properties like the <a href=‘#get-stop-token’>stop token</a>, <a href=‘#get-scheduler’>scheduler</a>, or <a href=‘#get-allocator’>allocator</a> associated with the <code><a href=‘#receiver’>receiver</a></code>. The various properties associated with an object are accessed via <a href=‘#queries’>queries</a>.
22+
The term _enviroment_ refers to the bag of properties associated with an <code>_object_</code> by the call <code><a href=‘#get-env’>std::execution::get_env</a>(_object_)</code>. By default the environment for objects is empty (<code><a href=‘#empty-env’>std::execution::empty_env</a></code>). In particular, environments associated with <code><a href=‘#receiver’>receiver</a></code>s are used to provide access to properties like the <a href=‘#get-stop-token’>stop token</a>, <a href=‘#get-scheduler’>scheduler</a>, or <a href=‘#get-allocator’>allocator</a> associated with the <code><a href=‘#receiver’>receiver</a></code>. The various properties associated with an object are accessed via <a href=‘#queries’>queries</a>.
2323
</details>
2424

2525
## Concepts

docs/questions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ likely observable.
2626
- [exec.run.loop.types] p9.2: "get_stop_token(REC(o))": REC is a receiver, any
2727
environment would be attached to get_env(REC(o)).
2828
- [exec.into.variant] p2: the sender argument to into_variant really needs to
29-
have completion_signatures defined - should the constaint be sender_in
29+
have completion_signatures defined - should the constraint be sender_in
3030
instead of sender? oh, actually, only the result of transform_sender needs
3131
to be a sender_in!
3232
- [exec.sync.wait] p4.2: what is "e"? probably apply_sender(...)
@@ -43,7 +43,7 @@ likely observable.
4343
supposed to work? I don't see a reason why a value completion is necessarily
4444
required. As is, they are not because type_idenity_t ends up being used without
4545
argument.
46-
- [exec.then] p5 seems to miss a space betweend sendr and out_sndr
46+
- [exec.then] p5 seems to miss a space between sendr and out_sndr
4747
- [exec.let] p9: Env is not defined; it is probably meant to be env_t
4848
- [exec.schedule.from] p6: the Rcvr in state-type shouldn't be a reference
4949
- [exec.when.all] uses on-stop-request without saying what it actually does.

tests/beman/execution26/stopcallback-cons.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ TEST(stopcallback_cons) {
3131
// done is to verify that construction and destruction works even if the
3232
// callback is the only owner of the state.
3333
// - Given a stop_callback constructed from an engaged stop_token.
34-
// - When the corresponding stop_source and stop_token are destoryed.
34+
// - When the corresponding stop_source and stop_token are destroyed.
3535
// - Then the callback can still be destroyed without issues.
3636

3737
auto source = ::std::make_unique<::test_std::stop_source>();

tests/beman/execution26/stopsource-mem.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ auto test_stopsource_stop_possible() -> void {
5454
// - Given an engaged and a disengaged stop sources.
5555
// - When using stop_possible()
5656
// - Then the result is true for the engaged stop source (both
57-
// before request_stop() was calle and after) while
57+
// before request_stop() was called and after) while
5858
// the result is false for the disengaged stop source.
5959
// Reference: [stopsource.mem] p3
6060

0 commit comments

Comments
 (0)