Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Oct 22, 2024

  • The AnalyzeTemporaryDtors option was removed in clang-tidy-18, which means that clang-tidy was failing to parse the .clang-tidy file.
  • Incredibly, clang-tidy exits with success if it fails to parse the .clang-tidy file! Therefore all clang-tidy runs were passing without actually tidying anything.

Note:

  • This change will temporarily break downstream repositories until they have a few things fixed up.

@elbeno elbeno force-pushed the update-clang-tidy branch from 0222bad to bf737db Compare October 22, 2024 16:26
@elbeno elbeno changed the title Update clang tidy 🐛 Fix clang-tidy operation Oct 22, 2024
@elbeno elbeno force-pushed the update-clang-tidy branch 4 times, most recently from fead1de to 0253b7f Compare October 22, 2024 21:18
Problem:
- The `AnalyzeTemporaryDtors` option was **removed** in clang-tidy-18, which means
  that clang-tidy was failing to parse the .clang-tidy file.
- Incredibly, clang-tidy exits with **success** if it fails to parse the .clang-tidy
  file! Therefore all clang-tidy runs were passing without actually tidying
  anything.

Solution:
- Remove `AnalyzeTemporaryDtors` option from .clang-tidy
Problem:
- Some checks are aliases for other checks. `clang-tidy` does not deduplicate
  such checks; it just runs the same check twice
- Some things have changed since last updating `clang-tidy` checks.
- The `clang-tidy` checks that are configured are not documented.

Solution:
- Remove alias checks.
- Update a few other checks.
- Add documentation for configured checks.
Problem:
- `clang-tidy` exits with success if the `.clang-tidy` file is ill-formed.

Solution:
- Add a clang-tidy-canary target which tests if `clang-tidy` has any error
  output when run with `--verify-config`.
@elbeno elbeno force-pushed the update-clang-tidy branch from 0253b7f to 5afeef4 Compare October 23, 2024 17:49
@elbeno elbeno merged commit 02b28c1 into intel:dev Oct 23, 2024
5 checks passed
@elbeno elbeno deleted the update-clang-tidy branch October 23, 2024 20:38
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