diff options
author | Stephan T. Lavavej <stl@nuwen.net> | 2023-11-26 17:11:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 02:11:24 +0100 |
commit | f5832bab6f5024cabe32a9f668b7f44e6b7cfef5 (patch) | |
tree | a6740bffc3a7b037de8b410f2e1c7e979c1596c9 /libcxx/test/std/algorithms/alg.nonmodifying | |
parent | af3c5a7cf1e008a467eb3104424ed122b533d7b3 (diff) | |
download | llvm-f5832bab6f5024cabe32a9f668b7f44e6b7cfef5.zip llvm-f5832bab6f5024cabe32a9f668b7f44e6b7cfef5.tar.gz llvm-f5832bab6f5024cabe32a9f668b7f44e6b7cfef5.tar.bz2 |
[libc++][test] Cleanup typos and unnecessary semicolons (#73435)
I've structured this into a series of commits for even easier reviewing,
if that helps. I could easily split this up into separate PRs if
desired, but as this is low-risk with simple edits, I thought one PR
would be easiest.
* Drop unnecessary semicolons after function definitions.
* Cleanup comment typos.
* Cleanup `static_assert` typos.
* Cleanup test code typos.
+ There should be no functional changes, assuming I've changed all
occurrences.
* ~~Fix massive test code typos.~~
+ This was a real problem, but needed more surgery. I reverted those
changes here, and @philnik777 is fixing this properly with #73444.
* clang-formatting as requested by the CI.
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying')
-rw-r--r-- | libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp | 2 | ||||
-rw-r--r-- | libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp index faf597c..e28cbe2 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp @@ -18,7 +18,7 @@ // constexpr bool // constexpr after c++17 // equal(Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2); -// We test the cartesian product, so we somethimes compare differently signed types +// We test the cartesian product, so we sometimes compare differently signed types // ADDITIONAL_COMPILE_FLAGS: -Wno-sign-compare #include <algorithm> diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp index 9641411..9138199 100644 --- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp +++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/ranges.for_each_n.pass.cpp @@ -57,7 +57,7 @@ constexpr void test_iterator() { assert(i == 4); } - { // check that an emptry range works + { // check that an empty range works int a[] = {}; std::ranges::for_each_n(Iter(a), 0, [](auto&) { assert(false); }); } |