Skip to content

Fix new clang tidy warnings introduced after clang tidy 10 or keep them disabled #1777

@ottml

Description

@ottml

See #1771

We have the following new errors with clang-tidy 18:

For now the are disabled. We have decide if we want to fix them or keep them disabled

Some of the errors can be fixed by clang tidy automatically.

[bugprone-assignment-in-if-condition] 19
[bugprone-casting-through-void] 1
[bugprone-empty-catch] 9
[bugprone-optional-value-conversion] 2
[bugprone-reserved-identifier] 47
[bugprone-unchecked-optional-access] 1
[bugprone-unhandled-exception-at-new] 1
[clang-analyzer-core.NonNullParamChecker] 1
[clang-analyzer-cplusplus.NewDeleteLeaks] 1
[clang-analyzer-optin.core.EnumCastOutOfRange] 11
[misc-const-correctness] 1693
[modernize-macro-to-enum] 24
[performance-move-const-arg] 2
[performance-no-int-to-ptr] 6
[readability-avoid-nested-conditional-operator] 66
[readability-avoid-return-with-void-value] 9
[readability-redundant-casting] 15
[readability-suspicious-call-argument] 44
[readability-use-anyofallof] 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions