languages/cpp/parser: lexer error

Marek Jasovsky jasovsky.marek at gmail.com
Mon Aug 25 18:27:38 UTC 2008


should I post this as a bug?

Marek

2008/8/25, Andreas Pakulat <apaku at gmx.de>:
> 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.
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>




More information about the KDevelop-devel mailing list