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
c1a2afce
Commit
c1a2afce
authored
Jan 06, 2009
by
Roberto Raggi
Browse files
TypeIdAST::lastToken().
parent
2fb5e630
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/AST.cpp
View file @
c1a2afce
...
...
@@ -2624,10 +2624,15 @@ unsigned TypeIdAST::firstToken() const
unsigned
TypeIdAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
if
(
declarator
)
return
declarator
->
lastToken
();
return
type_specifier
->
lastToken
();
for
(
SpecifierAST
*
it
=
type_specifier
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
)
return
it
->
lastToken
();
}
return
0
;
}
void
TypeidExpressionAST
::
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