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
Tobias Hunger
qt-creator
Commits
fdd77d8c
Commit
fdd77d8c
authored
Jan 05, 2009
by
Roberto Raggi
Browse files
Implemented NamespaceAST::lastToken().
parent
cc838218
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/AST.cpp
View file @
fdd77d8c
...
...
@@ -1696,7 +1696,6 @@ unsigned NamedTypeSpecifierAST::firstToken() const
unsigned
NamedTypeSpecifierAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
return
name
->
lastToken
();
}
...
...
@@ -1717,11 +1716,17 @@ unsigned NamespaceAST::firstToken() const
unsigned
NamespaceAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
if
(
linkage_body
)
return
linkage_body
->
lastToken
();
for
(
SpecifierAST
*
it
=
attributes
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
}
if
(
identifier_token
)
return
identifier_token
+
1
;
return
namespace_token
+
1
;
}
...
...
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