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 clang-tidy warnings for generated code #11684

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

daschuer
Copy link
Member

The original attempt to exclude the kaitai struct file via CMake and CXX_CLANG_TIDY did not work, because this is a target property. A fix would be to create a target for them which clutters the build process and adds maintenance effort.

The slim alternative is to move the files to an extra folder and add a .clang-format config file to that folder that disables all checks. This has been implemented here.

@JoergAtGithub
Copy link
Member

LGTM! Thank you!

@JoergAtGithub JoergAtGithub merged commit 3898f6c into 2.4 Jun 27, 2023
@JoergAtGithub JoergAtGithub deleted the clang-tidy-ignore branch June 27, 2023 19:29
@daschuer daschuer added this to the 2.4.0 milestone Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants