stubgen icon indicating copy to clipboard operation
stubgen copied to clipboard

forword declaration error

Open westfly opened this issue 11 years ago • 1 comments

namsepace some { class ForwordClass; class B { }; } stubgen parser failed

It caused by namsespace issue.

when ignore namsespace, it will be ok.

westfly avatar Jan 19 '14 03:01 westfly

stubgen's parser does not conform to the latest C++ standard. It was developed back in 1998 as a gigantic hack that I created when I was teaching myself lex/yacc. Hacking the yacc grammar further probably isn’t a good idea, since C++ isn’t an LALR(1) language anyways.

At the time it was written it handled C++98 pretty well - but it may not handle C++03 or C++11 well at all.

Sent from my mobile device

On Jan 18, 2014, at 7:33 PM, Ares Young [email protected] wrote:

namsepace some { class ForwordClass; class B { }; } stubgen parser failed

It caused by namsespace issue.

when ignore namsespace, it will be ok.

— Reply to this email directly or view it on GitHub.

mjradwin avatar Jan 19 '14 15:01 mjradwin