Bug in NodeInfo for CTranslUnit

Benedikt Huber benedikt.huber at gmail.com
Thu Feb 26 04:57:27 EST 2009


On 26.02.2009, at 10:50, Erik de Castro Lopo wrote:
> Benedikt Huber wrote:
>
>> thanks for the report (http://www.sivity.net/projects/language.c/ticket/32
>> ).
>
> So I should enter bugs there in future?
Yes please !

>> The reason for this 'bug' is that the first token of the translation
>> unit is not in 'test.c' but some system header. We could change the
>> file of CTranslUnit anyway, it agree that it is more appropriate. But
>> I guess it will need a rather ugly 'special case' hack,
>
> Well its either an ugly hack in your code or an ugly hack in my
> code :-).
Well, I'm not a big fan of ugly hacks in the already contrived Lexer/ 
Parser modules, but maybe we can find a sufficiently beautiful  
solution ;)

benedikt




More information about the Language-c mailing list