1 .. title:: clang-tidy - misc-unused-using-decls
3 misc-unused-using-decls
4 =======================
6 Finds unused ``using`` declarations.
8 Unused ``using``` declarations in header files will not be diagnosed since these
9 using declarations are part of the header's public API. Allowed header file
10 extensions can be configured via the `HeaderFileExtensions` option (see below).
17 namespace n { class C; }
18 using n::C; // Never actually used.
23 .. option:: HeaderFileExtensions
25 Note: this option is deprecated, it will be removed in :program:`clang-tidy`
26 version 19. Please use the global configuration option
27 `HeaderFileExtensions`.
29 A semicolon-separated list of filename extensions of header files (the filename
30 extensions should not include "." prefix). Default is "h,hh,hpp,hxx".
31 For extension-less header files, use an empty string or leave an
32 empty string between "," if there are other filename extensions.