clang-tidy - misc-unused-using-decls — Extra Clang Tools 19.1.7 documentation

# Extra Clang Tools 19.1.7 documentation

## clang-tidy - misc-unused-using-decls

# misc-unused-using-decls

Finds unused `using` declarations.

Unused `using`` declarations in header files will not be diagnosed since these using declarations are part of the header’s public API. Allowed header file extensions can be configured via the global option HeaderFileExtensions.

Example:

    // main.cpp
    namespace n { class C; }
    using n::C;  // Never actually used.