Skip to content

Commit 0ed5301

Browse files
committed
lint
1 parent 1a9e545 commit 0ed5301

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.codespellignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
claus
2+
moint

.github/workflows/ci_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
# Install llvm
8989
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
9090
fi
91-
- name: Print installed softwares
91+
- name: Print installed software
9292
run: |
9393
clang++ --version
9494
g++ --version

include/beman/inplace_vector/inplace_vector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ inline constexpr from_range_t from_range;
298298
}; // namespace std
299299
*/
300300

301-
// TODO(River): using namespace std below, we need to specifiy
301+
// TODO(River): using namespace std below, we need to specify
302302
// beman::from_range_t
303303
namespace beman {
304304
struct from_range_t {};
305305
inline constexpr from_range_t from_range;
306306
}; // namespace beman
307307

308-
// Private utilites
308+
// Private utilities
309309
namespace beman::__iv_detail {
310310

311311
template <class = void>
312312
[[noreturn]]
313313
static constexpr void __assert_failure(char const *__file, int __line,
314314
char const *__msg) {
315315
if consteval {
316-
throw __msg; // TODO: std lib implementor, do better here
316+
throw __msg; // TODO: std lib implementer, do better here
317317
} else {
318318
fprintf(stderr, "%s(%d): %s\n", __file, __line, __msg);
319319
abort();

tests/beman/inplace_vector/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ add_test(NAME beman.inplace_vector.test COMMAND beman.inplace_vector.test)
1212

1313
# Migrated test from original implementation
1414
add_executable(beman.inplace_vector.ref-test ref_impl.test.cpp)
15-
target_link_libraries(beman.inplace_vector.ref-test PRIVATE beman.inplace_vector)
16-
add_test(NAME beman.inplace_vector.ref-test COMMAND beman.inplace_vector.ref-test)
17-
15+
target_link_libraries(
16+
beman.inplace_vector.ref-test
17+
PRIVATE beman.inplace_vector
18+
)
19+
add_test(
20+
NAME beman.inplace_vector.ref-test
21+
COMMAND beman.inplace_vector.ref-test
22+
)

tests/beman/inplace_vector/ref_impl.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ int main() {
360360
CHECK(a.size() == std::size_t(10));
361361
CHECK(!a.empty());
362362
CHECK_THROWS(a.push_back(0), std::bad_alloc);
363-
CHECK((uintptr_t)nullptr == (uintptr_t)a.try_push_back(0));
363+
CHECK((uintptr_t) nullptr == (uintptr_t)a.try_push_back(0));
364364
}
365365

366366
{ // resize copyable
@@ -758,7 +758,7 @@ int main() {
758758
CHECK(c.front().getd() == 3.5);
759759
CHECK(c.back().geti() == 3);
760760
CHECK(c.back().getd() == 4.5);
761-
CHECK((uintptr_t)nullptr == (uintptr_t)c.try_emplace_back(2, 3.5));
761+
CHECK((uintptr_t) nullptr == (uintptr_t)c.try_emplace_back(2, 3.5));
762762
}
763763
{ // unchecked_emplace_back
764764
vector<non_copyable, 2> c;

0 commit comments

Comments
 (0)