Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
2e0cb24c
Commit
2e0cb24c
authored
Aug 16, 2010
by
Roberto Raggi
Browse files
Create symbols for namespace-aliases.
parent
b81e3585
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Bind.cpp
View file @
2e0cb24c
...
...
@@ -1961,11 +1961,16 @@ bool Bind::visit(NamespaceAST *ast)
bool
Bind
::
visit
(
NamespaceAliasDefinitionAST
*
ast
)
{
// unsigned namespace_token = ast->namespace_token;
// unsigned namespace_name_token = ast->namespace_name_token;
// unsigned equal_token = ast->equal_token;
/*const Name *name =*/
this
->
name
(
ast
->
name
);
// unsigned semicolon_token = ast->semicolon_token;
unsigned
sourceLocation
=
ast
->
firstToken
();
const
Name
*
name
=
0
;
if
(
ast
->
namespace_name_token
)
{
sourceLocation
=
ast
->
namespace_name_token
;
name
=
control
()
->
nameId
(
identifier
(
ast
->
namespace_name_token
));
}
NamespaceAlias
*
namespaceAlias
=
control
()
->
newNamespaceAlias
(
sourceLocation
,
name
);
namespaceAlias
->
setNamespaceName
(
this
->
name
(
ast
->
name
));
_scope
->
addMember
(
namespaceAlias
);
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment