Repository navigation
scan: drop the unused ascending() helper - #161
Merged
Merged
Conversation
The function template in scan.cpp's anonymous namespace has had no caller since it was introduced, in any SIMD configuration. Clang's -Wunused-template therefore rejects scan.cpp under -Werror, which consumers that build libunicode with that warning enabled (core-cpp's wasm32-wasip1 build, where LIBUNICODE_SIMD_IMPLEMENTATION=none) have had to silence on libunicode's target. No behaviour change. Signed-off-by: Christian Parpart <christian@parpart.family>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #161 +/- ##
==========================================
+ Coverage 90.25% 90.47% +0.22%
==========================================
Files 37 37
Lines 1816 1816
==========================================
+ Hits 1639 1643 +4
+ Misses 177 173 -4 🚀 New features to boost your workflow:
|
GitHub retired the macOS 14 runner images on November 2, 2026, so jobs asking for macos-14 are now rejected before they start. macos-15 is the standard arm64 runner, matching what the jobs built for (and the unicode-query-macos-arm64 artifact name). Signed-off-by: Christian Parpart <christian@parpart.family>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
template <typename T> constexpr bool ascending(...)inscan.cpp's anonymous namespace has no caller in any configuration (none,intrinsics,std). Clang's-Wunused-templateturns that into a hard error under-Werror. The motivating consumer is core-cpp's wasm32-wasip1 build (which forcesLIBUNICODE_SIMD_IMPLEMENTATION=none); it currently has to silence the warning on libunicode's target.Fix
Delete the dead helper. A preprocessor guard wouldn't help, because nothing uses it in any build. No behaviour change.
Verification
-Wunused-template -Werrorplus the pedantic flags:scan.cppfailed on master withnone,intrinsicsandstd. With this change it compiles in all three, and theunicodelibrary target builds cleanly withnoneandintrinsics.unicode_test:none124604 assertions,intrinsics140938 assertions, all passing.scan.cppwith-Werror -Wunused-templatefails on master and compiles with this change.stdfails in<experimental/simd>(convert512.cpp,scan512.cpp), and clang-pedantic -Werrorrejects Catch2's__COUNTER__in the test sources.