Re: Re: doxygen
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Eric Niebler wrote:
>
> Stefan Seefeld wrote:
>
>> synopsis -h -p Cxx will tell you all the options you can use with the Cxx
>> parser. There's notably the 'emulate_compiler' option, which defaults to
>> 'c++'. Can you try 'g++' to see whether that works better ? 'c++' should
>> be just an alias to 'g++', but...
>>
>> synopsis -p Cxx -Wp,--emulate_compiler='g++' ...
>
>
>
> Unfortunately, that didn't help. It seems cygwin's platform headers make
> use of some C++ extensions, such as __cdecl and __declspec. I added the
> following to my cpp_emulations file, and got quite a bit further:
>
> ('__i386__', ''),
> ('__cdecl', ''),
> ('__declspec(x)', '')
the first ought to be got from the compiler emulation mechanism I outlined
above, but the second and third token ought to be recognized by the parser
(if '_MSC_VER' is defined only, may be that's the problem: can you tell
me whether that gets defined by gcc on cygwin ?)
> Now I'm dying in the synopsis C++ parser itself. I've attached a simple
> repro.
Oh well, I really have to get hold of a windows installation to debug
this stuff myself.
Regards,
Stefan