[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
Mon Oct 12 14:36:13 PDT 2020


sylvestre.ledru created this revision.
sylvestre.ledru added a reviewer: gribozavr.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
sylvestre.ledru requested review of this revision.

Repository:
  rG LLVM Github Monorepo

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.297691.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201012/59637bf8/attachment.bin>


More information about the cfe-commits mailing list