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

More SonarQube - refactor lookup_tables #23

Merged
merged 2 commits into from
Sep 7, 2024
Merged

More SonarQube - refactor lookup_tables #23

merged 2 commits into from
Sep 7, 2024

Conversation

dwd
Copy link
Owner

@dwd dwd commented Sep 7, 2024

The original lookup tables were inline defined unsigned char arrays, mostly of 0 or 1.

This changes them to (mostly) std::vector arrays, with one remaining set to std::array<unsigned char, 256>.

The original defined these as static variables within a templatized struct as a linkage hack; we're now using C++17's static inline instead which achieves the same thing.

@dwd dwd merged commit 821208b into master Sep 7, 2024
2 checks passed
@dwd dwd deleted the sonar-fixes branch September 10, 2024 08:46
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