[PATCH] D89270: [clang-tidy] Add an example for misc-unused-alias-decls
Sylvestre Ledru via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 13 04:56:51 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG002968a32046: [clang-tidy] Add an example for misc-unused-alias-decls (authored by sylvestre.ledru).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89270/new/
https://reviews.llvm.org/D89270
Files:
clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
Index: clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
+++ clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
@@ -5,3 +5,10 @@
Finds unused namespace alias declarations.
+
+.. code-block:: c++
+
+ namespace my_namespace {
+ class C {};
+ }
+ namespace unused_alias = ::my_namespace;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89270.297826.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201013/7106d311/attachment.bin>
More information about the cfe-commits
mailing list