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

Enabled clang-tidy checks in header files #2338

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vpirogov
Copy link
Member

@vpirogov vpirogov commented Jan 3, 2025

Our current setup does not run any clang-tidy check on header files. This results in 792 unique warnings generated.

One wrinkle is that we don't want it to touch any header files from third party components embedded in the source code, but current version of clang-tidy does not offer a way to exclude these. There are couple options:

  • Uses ExcludeHeaderFilterRegex option available in clang-tidy >=19.0 (in this PR)
  • Move all third party components to separate folder (like /third-party)

Related to MFDNN-12943

@vpirogov vpirogov requested review from a team as code owners January 3, 2025 23:14
@vpirogov vpirogov marked this pull request as draft January 3, 2025 23:14
@github-actions github-actions bot added platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64 platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64 platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel component:tests Codeowner: @oneapi-src/onednn-arch component:build labels Jan 3, 2025
@theComputeKid
Copy link
Member

We could temporarily add another non blocking check that checks for warnings in the headers, and allow the current one to remain while we fix them.

@theComputeKid
Copy link
Member

Also, 3p should ideally be in a separate folder anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:build component:tests Codeowner: @oneapi-src/onednn-arch platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64 platform:cpu-x64 Intel64/AMD64 processors. Codeowner: @oneapi-src/onednn-cpu-x64 platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants