From 002968a320463237f0ccea754a7482b229e34cf1 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 12 Oct 2020 23:32:40 +0200 Subject: [PATCH] [clang-tidy] Add an example for misc-unused-alias-decls Differential Revision: https://reviews.llvm.org/D89270 --- .../docs/clang-tidy/checks/misc-unused-alias-decls.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst index d0e8c7188a3f..1b0a0cde059b 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst @@ -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;