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
e0c1943c
Commit
e0c1943c
authored
Jan 06, 2009
by
Roberto Raggi
Browse files
PointerToMemberAST::lastToken().
parent
57cf35a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/AST.cpp
View file @
e0c1943c
...
...
@@ -2052,7 +2052,6 @@ unsigned PointerAST::firstToken() const
unsigned
PointerAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
for
(
SpecifierAST
*
it
=
cv_qualifier_seq
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
...
...
@@ -2081,12 +2080,23 @@ unsigned PointerToMemberAST::firstToken() const
unsigned
PointerToMemberAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
for
(
SpecifierAST
*
it
=
cv_qualifier_seq
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
}
return
star_token
+
1
;
if
(
star_token
)
return
star_token
+
1
;
for
(
NestedNameSpecifierAST
*
it
=
nested_name_specifier
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
}
if
(
global_scope_token
)
return
global_scope_token
+
1
;
return
0
;
}
void
PostIncrDecrAST
::
accept0
(
ASTVisitor
*
visitor
)
...
...
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