Skip to content

[clang-tidy] misc-confusable-identifiers checker is very slow #128797

@zygoloid

Description

@zygoloid

We're seeing the misc-confusable-identifiers checker be easily 10x slower than any other clang-tidy check. I think this check becomes slow in the presence of an identifier declared many times -- such as a large overload set.

The current implementation appears to be quadratic in the number of redeclarations of a given identifier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions