Issue 76597
Summary [clang-tidy] disable `misc-unused-using-decls` check for C source
Labels clang-tidy
Assignees
Reporter zufuliu
    the check lacks:
```c++
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
  return LangOpts.CPlusPlus;
}
```

numbers for https://github.com/zufuliu/notepad2/blob/main/src/Notepad2.c on a slow system:
```
===-------------------------------------------------------------------------===
 clang-tidy checks profiling
===-------------------------------------------------------------------------===
 Total Execution Time: 3.9062 seconds (3.8387 wall clock)

   ---User Time---   --System Time--   --User+System--   ---Wall Time---  --- Name ---
   0.5938 ( 17.7%)   0.0156 (  2.9%)   0.6094 ( 15.6%)   0.6067 ( 15.8%)  bugprone-reserved-identifier
   0.5625 ( 16.7%)   0.0312 (  5.7%) 0.5938 ( 15.2%)   0.4788 ( 12.5%)  misc-unused-using-decls
   0.2500 ( 7.4%)   0.0156 (  2.9%)   0.2656 (  6.8%)   0.2728 (  7.1%) readability-function-size
   0.1719 (  5.1%)   0.0781 ( 14.3%)   0.2500 ( 6.4%)   0.2006 (  5.2%)  readability-non-const-parameter
   0.1250 ( 3.7%)   0.0156 (  2.9%)   0.1406 (  3.6%)   0.1720 (  4.5%) misc-misleading-identifier
   0.0469 (  1.4%)   0.0156 (  2.9%)   0.0625 ( 1.6%)   0.1219 (  3.2%)  misc-non-copyable-objects
   0.0625 (  1.9%) 0.0000 (  0.0%)   0.0625 (  1.6%)   0.1173 (  3.1%) bugprone-unused-return-value
   0.1406 (  4.2%)   0.0156 (  2.9%)   0.1562 (  4.0%)   0.1134 (  3.0%) bugprone-suspicious-string-compare

```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to