Commit 9666488f authored by Roberto Raggi's avatar Roberto Raggi

TemplateArgumentListAST::lastToken().

parent dc08c07d
......@@ -2375,9 +2375,8 @@ unsigned TemplateArgumentListAST::firstToken() const
unsigned TemplateArgumentListAST::lastToken() const
{
assert(0 && "review me");
for (const TemplateArgumentListAST *it = this; it; it = it->next) {
if (! it->next)
for (TemplateArgumentListAST *it = this; it; it = it->next) {
if (! it->next && it->template_argument)
return it->template_argument->lastToken();
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment