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

build: fix the tidy targets for autotools #15813

Closed
wants to merge 1 commit into from
Closed

Conversation

bagder
Copy link
Member

@bagder bagder commented Dec 23, 2024

To make them run clang-tidy correctly. clang-tidy occasionally finds mistakes none of the other static code analyzers we use finds.

Also added the
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling flag, to make it not complain about memcpy()

"make tidy" in the build root works fine now. The previous clang-tidy CI job was removed in e43c3b3. It is probably time to bring it back.

@bagder
Copy link
Member Author

bagder commented Dec 23, 2024

@vszakats as "mr CI", do you have any thoughts on how to best run clang-tidy in GHA?

The setup runs the tool on an existing build, so it would make sense to run it in one or a few existing jobs that are fairly "complete" and use as many features as possible.

@testclutch

This comment was marked as outdated.

To make them run clang-tidy correctly. clang-tidy occasionally finds
mistakes none of the other static code analyzers we use finds.

Also added the
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
flag, to make it not complain about memcpy()

"make tidy" in the build root works fine now. The previous clang-tidy CI
job was removed in e43c3b3. It is probably time to bring it
back.
@bagder bagder closed this in f3efab1 Dec 23, 2024
@bagder bagder deleted the bagder/clang-tidy branch December 23, 2024 22:03
@vszakats
Copy link
Member

@vszakats as "mr CI", do you have any thoughts on how to best run clang-tidy in GHA?

The setup runs the tool on an existing build, so it would make sense to run it in one or a few existing jobs that are fairly "complete" and use as many features as possible.

I'll look into this locally, also for CMake, and see what can be done to have it in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants