brintos

brintos / llvm-project-archived public Read only

0
0
Text · 479 B · 1754465 Raw
20 lines · plain
1.. title:: clang-tidy - misc-unused-using-decls2 3misc-unused-using-decls4=======================5 6Finds unused ``using`` declarations.7 8Unused ``using`` declarations in header files will not be diagnosed9since these using declarations are part of the header's public API.10Allowed header file extensions can be configured via the global11option `HeaderFileExtensions`.12 13Example:14 15.. code-block:: c++16 17  // main.cpp18  namespace n { class C; }19  using n::C;  // Never actually used.20