diff --git a/src/lib/AST/ASTVisitor.cpp b/src/lib/AST/ASTVisitor.cpp index 380b61c23..45e23cdf9 100644 --- a/src/lib/AST/ASTVisitor.cpp +++ b/src/lib/AST/ASTVisitor.cpp @@ -1334,9 +1334,11 @@ populate( NamespaceAliasDecl* D) { NamedDecl const* Aliased = D->getAliasedNamespace(); - I.AliasedSymbol = toNameInfo(Aliased); + NestedNameSpecifier const* NNS = D->getQualifier(); + I.AliasedSymbol = toNameInfo(Aliased, {}, NNS); } + void ASTVisitor:: populate( diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.adoc b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.adoc new file mode 100644 index 000000000..f26c7e04b --- /dev/null +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.adoc @@ -0,0 +1,59 @@ += Reference +:mrdocs: + +[#index] +== Global namespace + + +=== Namespaces + +[cols=1] +|=== +| Name + +| <> +|=== + +[#B] +== B + + +=== Namespaces + +[cols=1] +|=== +| Name + +| <> +|=== + +[#B-U] +== <>::U + + +=== Namespace Aliases + +[cols=1] +|=== +| Name + +| <> +|=== + +[#B-U-E] +== <>::<>::E + + +=== Synopsis + + +Declared in `<excluded‐namespace‐alias.cpp>` + +[source,cpp,subs="verbatim,replacements,macros,-callouts"] +---- +namespace E = <>::S::E; +---- + + + +[.small]#Created with https://www.mrdocs.com[MrDocs]# diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.cpp b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.cpp new file mode 100644 index 000000000..55502563b --- /dev/null +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.cpp @@ -0,0 +1,9 @@ +namespace B { + namespace S { + namespace E {} + } + + namespace U { + namespace E = B::S::E; + } +} \ No newline at end of file diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.html b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.html new file mode 100644 index 000000000..15403bfba --- /dev/null +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.html @@ -0,0 +1,80 @@ + + +Reference + + +
+

Reference

+
+
+

Global namespace

+
+

Namespaces

+ + + + + + + + + + +
Name
B
+
+
+
+

B

+
+

Namespaces

+ + + + + + + + + + +
Name
U
+
+
+
+

B::U

+
+

Namespace Aliases

+ + + + + + + + + + +
Name
E
+
+
+
+

B::U::E

+
+
+

Synopsis

+
+Declared in <excluded-namespace-alias.cpp>
+
+
+namespace E = B::S::E;
+
+
+
+
+ +
+
+

Created with MrDocs

+
+ + \ No newline at end of file diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml new file mode 100644 index 000000000..e88559cfe --- /dev/null +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + diff --git a/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.yml b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.yml new file mode 100644 index 000000000..3e51e752a --- /dev/null +++ b/test-files/golden-tests/filters/symbol-name/excluded-namespace-alias.yml @@ -0,0 +1,6 @@ +include-symbols: + - 'B::U' + - 'B::U::**' +exclude-symbols: + - 'B::S' + - 'B::S::**'