Skip to content

clang-tidy check misc-unused-using-decls appears to be quite slow #72300

Open
@firewave

Description

@firewave

The misc-unused-using-decls check constantly comes up as one of the top 3 expensive checks in our code base (it usually takes about 5% of the total time). Considering it is not providing that much in terms of its findings compared to other checks it seems a bit excessive.

  ---User Time---   --System Time--   --User+System--   ---Wall Time---  --- Name ---
   0.8125 ( 11.9%)   0.0000 (  0.0%)   0.8125 (  7.4%)   0.7912 (  7.2%)  bugprone-reserved-identifier
   0.4531 (  6.6%)   0.3125 (  7.6%)   0.7656 (  7.0%)   0.6002 (  5.5%)  misc-unused-using-decls
   0.2344 (  3.4%)   0.0938 (  2.3%)   0.3281 (  3.0%)   0.4317 (  3.9%)  bugprone-use-after-move
   0.7969 ( 11.6%)   0.0312 (  0.8%)   0.8281 (  7.5%)   0.8204 (  7.5%)  bugprone-reserved-identifier
   0.2969 (  4.3%)   0.3125 (  7.7%)   0.6094 (  5.6%)   0.6044 (  5.5%)  misc-unused-using-decls
   0.4219 (  6.1%)   0.1094 (  2.7%)   0.5312 (  4.8%)   0.4172 (  3.8%)  bugprone-use-after-move
   0.5781 (  5.0%)   0.4688 (  4.9%)   1.0469 (  5.0%)   1.1171 (  5.3%)  misc-unused-using-decls
   0.8750 (  7.6%)   0.0938 (  1.0%)   0.9688 (  4.6%)   0.9738 (  4.6%)  bugprone-reserved-identifier
   0.7969 (  6.9%)   0.2344 (  2.5%)   1.0312 (  4.9%)   0.8989 (  4.3%)  bugprone-use-after-move

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