Skip to content

Refine clang-tidy configuration for the runtime#9032

Merged
alexreinking merged 2 commits intomainfrom
alexreinking/clang-tidy-runtime
Mar 16, 2026
Merged

Refine clang-tidy configuration for the runtime#9032
alexreinking merged 2 commits intomainfrom
alexreinking/clang-tidy-runtime

Conversation

@alexreinking
Copy link
Copy Markdown
Member

In #9024 I noticed a comment about clang-tidy not respecting disabling checks that were matched by a wildcard. Maybe that was true in clang-tidy 16 (as indicated by the comment), but it is not true today!

Also refine the ./run-clang-tidy.sh script to:

  1. Correctly filter the noisy "N warnings generated" output by running clang-tidy in a wrapper script. Previously, independent instances could race to write and the sed filter wouldn't catch them.
  2. Remove unused patch_file function
  3. Use jq to better handle merging the runtime compile-commands databases

@alexreinking alexreinking requested a review from mcourteaux March 15, 2026 12:40
- "packaging/**"
- "Makefile"
- "Makefile.inc"
- 'run-clang-tidy.sh'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clang tidy is extremely slow. Do we really need to run it on all build targets? This is to have it check different permutations of the code, based on platform specific preprocessor macros?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is an exclusion so that the ARM Linux workflows don't run if we only modified the clang-tidy configuration.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Of course, since we modified the workflows themselves, they are running.

Comment thread run-clang-tidy.sh
Comment thread run-clang-tidy.sh
@alexreinking alexreinking merged commit d84e364 into main Mar 16, 2026
19 of 20 checks passed
@alexreinking alexreinking deleted the alexreinking/clang-tidy-runtime branch March 16, 2026 02:10
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.

2 participants