Skip to content
GitLab
Menu
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
3ac4e05e
Commit
3ac4e05e
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Annotated NamespaceAST nodes.
parent
34efcf31
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/AST.h
View file @
3ac4e05e
...
...
@@ -1194,6 +1194,9 @@ public:
SpecifierAST
*
attributes
;
DeclarationAST
*
linkage_body
;
public:
// annotations
Namespace
*
namespace_symbol
;
public:
virtual
unsigned
firstToken
()
const
;
virtual
unsigned
lastToken
()
const
;
...
...
src/shared/cplusplus/CheckDeclaration.cpp
View file @
3ac4e05e
...
...
@@ -286,6 +286,7 @@ bool CheckDeclaration::visit(NamespaceAST *ast)
Identifier
*
id
=
identifier
(
ast
->
identifier_token
);
Name
*
namespaceName
=
control
()
->
nameId
(
id
);
Namespace
*
ns
=
control
()
->
newNamespace
(
ast
->
firstToken
(),
namespaceName
);
ast
->
namespace_symbol
=
ns
;
_scope
->
enterSymbol
(
ns
);
semantic
()
->
check
(
ast
->
linkage_body
,
ns
->
members
());
// ### we'll do the merge later.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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