-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
= Reference | ||
:mrdocs: | ||
|
||
[#index] | ||
== Global namespace | ||
|
||
|
||
=== Namespaces | ||
|
||
[cols=1] | ||
|=== | ||
| Name | ||
|
||
| <<B,`B`>> | ||
|=== | ||
|
||
[#B] | ||
== B | ||
|
||
|
||
=== Namespaces | ||
|
||
[cols=1] | ||
|=== | ||
| Name | ||
|
||
| <<B-U,`U`>> | ||
|=== | ||
|
||
[#B-U] | ||
== <<B,B>>::U | ||
|
||
|
||
=== Namespace Aliases | ||
|
||
[cols=1] | ||
|=== | ||
| Name | ||
|
||
| <<B-U-E,`E`>> | ||
|=== | ||
|
||
[#B-U-E] | ||
== <<B,B>>::<<B-U,U>>::E | ||
|
||
|
||
=== Synopsis | ||
|
||
|
||
Declared in `<excluded‐namespace‐alias.cpp>` | ||
|
||
[source,cpp,subs="verbatim,replacements,macros,-callouts"] | ||
---- | ||
namespace E = <<B,B>>::S::E; | ||
---- | ||
|
||
|
||
|
||
[.small]#Created with https://www.mrdocs.com[MrDocs]# |
9 changes: 9 additions & 0 deletions
9
test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace B { | ||
namespace S { | ||
namespace E {} | ||
} | ||
|
||
namespace U { | ||
namespace E = B::S::E; | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<html lang="en"> | ||
<head> | ||
<title>Reference</title> | ||
</head> | ||
<body> | ||
<div> | ||
<h1>Reference</h1> | ||
<div> | ||
<div> | ||
<h2 id="index">Global namespace</h2> | ||
</div> | ||
<h2>Namespaces</h2> | ||
<table style="table-layout: fixed; width: 100%;"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><a href="#B"><code>B</code></a> </td></tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div> | ||
<div> | ||
<h2 id="B">B</h2> | ||
</div> | ||
<h2>Namespaces</h2> | ||
<table style="table-layout: fixed; width: 100%;"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><a href="#B-U"><code>U</code></a> </td></tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div> | ||
<div> | ||
<h2 id="B-U"><a href="#B">B</a>::U</h2> | ||
</div> | ||
<h2>Namespace Aliases</h2> | ||
<table style="table-layout: fixed; width: 100%;"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><a href="#B-U-E"><code>E</code></a> </td></tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div> | ||
<div> | ||
<h2 id="B-U-E"><a href="#B">B</a>::<a href="#B-U">U</a>::E</h2> | ||
</div> | ||
<div> | ||
<h3>Synopsis</h3> | ||
<div> | ||
Declared in <code><excluded-namespace-alias.cpp></code></div> | ||
<pre> | ||
<code class="source-code cpp"> | ||
namespace E = <a href="#B">B</a>::S::E; | ||
</code> | ||
</pre> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div> | ||
<h4>Created with <a href="https://www.mrdocs.com">MrDocs</a></h4> | ||
</div> | ||
</body> | ||
</html> |
18 changes: 18 additions & 0 deletions
18
test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mrdocs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc"> | ||
<namespace id="//////////////////////////8="> | ||
<namespace name="B" id="kPgq2AM8TvyGDGm5jEWfqYlOPmY="> | ||
<namespace name="S" id="Rj2Fd5N7JujyJxCEKO4hXgEbuZE="> | ||
<namespace name="E" id="3Bv76oUtQq1hnBVVkwioGwKa0oU="> | ||
</namespace> | ||
</namespace> | ||
<namespace name="U" id="X48ZrJbrwHITObLn6vxlcgApA20="> | ||
<namespace-alias name="E" id="TDj0Rc30uD7P5e+F1gsHzHoaV2U="> | ||
<file path="excluded-namespace-alias.cpp" line="7"/> | ||
<aliased name="B::S::E" id="3Bv76oUtQq1hnBVVkwioGwKa0oU="/> | ||
</namespace-alias> | ||
</namespace> | ||
</namespace> | ||
</namespace> | ||
</mrdocs> |
6 changes: 6 additions & 0 deletions
6
test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include-symbols: | ||
- 'B::U' | ||
- 'B::U::**' | ||
exclude-symbols: | ||
- 'B::S' | ||
- 'B::S::**' |