forked from OSchip/llvm-project
[clang-tidy] Add an example for misc-unused-alias-decls
Differential Revision: https://reviews.llvm.org/D89270
This commit is contained in:
parent
101309fe04
commit
002968a320
|
@ -5,3 +5,10 @@ misc-unused-alias-decls
|
|||
|
||||
|
||||
Finds unused namespace alias declarations.
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
namespace my_namespace {
|
||||
class C {};
|
||||
}
|
||||
namespace unused_alias = ::my_namespace;
|
||||
|
|
Loading…
Reference in New Issue