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

Clang-tidy CI test: bump version from 15 to 16 #5592

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

lucafedeli88
Copy link
Member

@lucafedeli88 lucafedeli88 commented Jan 22, 2025

This PR bumps the version used for clang-tidy CI tests from 15 to 16.
It also addresses all the issues found with the upgraded tool.

Most of the issues are related to this newly introduced check:

Few issues were instead related to these checks:

  • modernize-loop-convert
    This check was already enabled, but clang-tidy-16 broadens its scope with respect to previous versions.

  • modernize-use-auto
    Only one case. I am a bit confused because this should have been found also by version 15 of the tool.

  • misc-use-anonymous-namespace
    This is a new check. Actually, the issues found with this check were false positives, but they disappeared when I properly set misc-use-anonymous-namespace.HeaderFileExtensions in the .clang-tidy configuration file to recognize .H files as headers.

  • misc-misplaced-const
    Only one case. I am a bit confused because this should have been found also by version 15 of the tool.

  • readability-misleading-indentation [NOW DISABLED DUE TO FALSE POSITIVES]
    This check was already enabled. However, with this newer version of the tool, it seems to me that it generates some false positives. Therefore, I would like to propose to disable it. We may try to re-enable it when we will bump the version from 16 to 17.

@lucafedeli88 lucafedeli88 added component: tests Tests and CI cleaning Clean code, improve readability labels Jan 22, 2025
@lucafedeli88 lucafedeli88 changed the title [WIP] Clang-tidy CI test: bump version from 15 to 16 Clang-tidy CI test: bump version from 15 to 16 Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability component: tests Tests and CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant