[Qt-creator] ParameterDeclarationClauseAST bug

Marek Jasovsky jasovsky.marek at gmail.com
Wed Mar 18 22:07:14 CET 2009


Hi

as seen in current git version (AST.cpp)

unsigned ParameterDeclarationClauseAST::firstToken() const

2580 {
2581     if (parameter_declarations)
2582         return parameter_declarations->firstToken();
2583     return dot_dot_dot_token;
2584 }
2585
2586 unsigned ParameterDeclarationClauseAST::lastToken() const
2587 {
2588     if (dot_dot_dot_token)
2589         return dot_dot_dot_token + 1;
2590     return parameter_declarations->lastToken();
2591 }

for simple source I get zero values for both first and last token, and
without null pointer check I got exception at line 2590.

can you provide some quick, or good fix? (good one only if you have bit more
time...) however I would like to see there nice values.

Thanks

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090318/fc42dc12/attachment.html 


More information about the Qt-creator-old mailing list