summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst')
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst
index c8527b09fcd..7db873e0edb 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc-forward-declaration-namespace.rst
@@ -10,6 +10,7 @@ declaration/definition with the same name existing, which could indicate that
the forward declaration is in a potentially wrong namespace.
.. code:: c++
+
namespace na { struct A; }
namespace nb { struct A {}; }
nb::A a;
OpenPOWER on IntegriCloud