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
43db13a2
Commit
43db13a2
authored
Jan 06, 2009
by
Roberto Raggi
Browse files
TemplateIdAST::lastToken().
parent
c187d71c
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/AST.cpp
View file @
43db13a2
...
...
@@ -2437,8 +2437,18 @@ unsigned TemplateIdAST::firstToken() const
unsigned
TemplateIdAST
::
lastToken
()
const
{
assert
(
0
&&
"review me"
);
return
greater_token
+
1
;
if
(
greater_token
)
return
greater_token
+
1
;
for
(
TemplateArgumentListAST
*
it
=
template_arguments
;
it
;
it
=
it
->
next
)
{
if
(
!
it
->
next
&&
it
->
template_argument
)
return
it
->
template_argument
->
lastToken
();
}
if
(
less_token
)
return
less_token
+
1
;
return
identifier_token
+
1
;
}
void
TemplateTypeParameterAST
::
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