Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some cleanups #3195

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

some cleanups #3195

wants to merge 20 commits into from

Conversation

neheb
Copy link
Collaborator

@neheb neheb commented Feb 27, 2025

No description provided.

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 73.62637% with 24 lines in your changes missing coverage. Please review.

Project coverage is 63.93%. Comparing base (c34ad10) to head (dbf9d4e).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/bmffimage.cpp 69.69% 10 Missing ⚠️
src/tiffcomposite_int.cpp 50.00% 5 Missing and 3 partials ⚠️
src/crwimage_int.cpp 73.91% 2 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3195      +/-   ##
==========================================
- Coverage   63.94%   63.93%   -0.01%     
==========================================
  Files         104      104              
  Lines       21757    21753       -4     
  Branches    10635    10635              
==========================================
- Hits        13912    13908       -4     
+ Misses       5639     5637       -2     
- Partials     2206     2208       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neheb neheb force-pushed the un branch 4 times, most recently from 9ca891e to 59d583a Compare February 28, 2025 02:26
@neheb
Copy link
Collaborator Author

neheb commented Feb 28, 2025

Fun fact about the solaris stuff. There's no way it works.

I added CI in my repo and there's no linking done towards libsocket.

@neheb neheb force-pushed the un branch 4 times, most recently from ed383a9 to a953d94 Compare February 28, 2025 22:03
@neheb neheb marked this pull request as ready for review February 28, 2025 23:14
@neheb
Copy link
Collaborator Author

neheb commented Feb 28, 2025

Not sure about the config.h change.

@neheb neheb requested a review from kmilos March 1, 2025 22:35
@neheb neheb force-pushed the un branch 5 times, most recently from 3ae3ed4 to dbf9d4e Compare March 2, 2025 23:49
neheb added 11 commits March 3, 2025 19:29
It's threadsafe and is a simple one liner. A bunch of code is needed
when not using fmt. Make that clear.

Also replace tm with std::tm. Confusing otherwise.

Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Precomputed the second one instead of adding parentheses. Godbolt shows
a savings of two instructions on x86.

Signed-off-by: Rosen Penev <[email protected]>
clang-tidy complains about the result of release() being unused.

Signed-off-by: Rosen Penev <[email protected]>
clang-tidy complains about it.

Signed-off-by: Rosen Penev <[email protected]>
Became unused from all the stringFormat conversions

Signed-off-by: Rosen Penev <[email protected]>
meson has this quirk where it tests default, hidden, and internal. If
one fails, they all fail. We don't care about hidden and internal.

Signed-off-by: Rosen Penev <[email protected]>
No need with std::filesystem

Signed-off-by: Rosen Penev <[email protected]>
neheb added 9 commits March 3, 2025 19:31
This is C++20 now.

Signed-off-by: Rosen Penev <[email protected]>
This was committed accidentally

Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Not having the else after return is fine for normal if statements, but
not if constexpr. Fixes an MSVC warning about an unreachable path.

Signed-off-by: Rosen Penev <[email protected]>
No need for find_if's overhead.

Signed-off-by: Rosen Penev <[email protected]>
A boneheaded mistake when converting std::exp and std::log(2). exp2 is
simpler.

Signed-off-by: Rosen Penev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant