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

FIX: some code smells found by clang-tidy #4070

Merged
merged 1 commit into from
May 24, 2024

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented May 24, 2024

Introduced in the example code of #4043.

@reneme reneme added this to the Botan 3.5.0 milestone May 24, 2024
@reneme reneme self-assigned this May 24, 2024
@coveralls
Copy link

Coverage Status

coverage: 91.837% (+0.001%) from 91.836%
when pulling 65a6dc5 on Rohde-Schwarz:fix/clang-tidy
into 1644599 on randombit:master.

Copy link
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Are we not running clang-tidy on the examples in CI?

Edit: indeed it seems this was skipped in the clang-tidy run https://github.com/randombit/botan/actions/runs/9209158585/job/25333053746 but looking at the relevant scripts I don't see why

@reneme reneme merged commit bccd67b into randombit:master May 24, 2024
43 checks passed
@reneme reneme deleted the fix/clang-tidy branch May 24, 2024 09:44
@reneme reneme restored the fix/clang-tidy branch May 27, 2024 07:21
@reneme reneme deleted the fix/clang-tidy branch May 27, 2024 07:21
@reneme
Copy link
Collaborator Author

reneme commented May 27, 2024

Are we not running clang-tidy on the examples in CI?

Fixed here: 0c886a4
Problem was, that the CI's clang-tidy job did not enable 'examples' in the build configuration (among other things). The run_clang_tidy.py is consulting compile_commands.json for files to be evaluated: which only lists files in components that were actually enabled in the build configuration. Therefore, examples were not clang-tidy'ed in CI before.

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.

3 participants