[clang-tidy] Add an example for misc-unused-alias-decls

Differential Revision: https://reviews.llvm.org/D89270
This commit is contained in:
Sylvestre Ledru 2020-10-12 23:32:40 +02:00
parent 101309fe04
commit 002968a320
1 changed files with 7 additions and 0 deletions

View File

@ -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;