[clang-tools-extra] 002968a - [clang-tidy] Add an example for misc-unused-alias-decls
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 04:56:42 PDT 2020
Author: Sylvestre Ledru
Date: 2020-10-13T13:56:04+02:00
New Revision: 002968a320463237f0ccea754a7482b229e34cf1
URL: https://github.com/llvm/llvm-project/commit/002968a320463237f0ccea754a7482b229e34cf1
DIFF: https://github.com/llvm/llvm-project/commit/002968a320463237f0ccea754a7482b229e34cf1.diff
LOG: [clang-tidy] Add an example for misc-unused-alias-decls
Differential Revision: https://reviews.llvm.org/D89270
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
Removed:
################################################################################
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;
More information about the cfe-commits
mailing list