languages/cpp/parser: lexer error
Andreas Pakulat
apaku at gmx.de
Mon Aug 25 17:29:50 UTC 2008
On 25.08.08 18:40:22, Marek Jasovsky wrote:
> Hi
>
> I found this weird behavior in cpp lexer in kdev4 while struggling to
> learn something about duchain.
>
> in kdevplatform/plugins/duchainviewer/duchainmodel.cpp
>
> QModelIndex DUChainModel::index(int row, int column, const QModelIndex
> & parent) const // line 147
> { //line 148
> # #
> if (row < 0 || column < 0 || column > 0 || !m_chain) //line 149
> return QModelIndex(); //line 150
>
> kdev4 problems view gives me 2 errors marked with # above the line...
> (3rd zero and last closing brace, but code gets compiled without
> errors.
>
> first: Expected token ')' after '>' found 'number_literal' (Lexer)
> 2nd: Unexpected token ')'
Yeah, it looks like the lexer thinks it found a template.
Andreas
--
Your step will soil many countries.
More information about the KDevelop-devel
mailing list