Re: Re: doxygen

David Abrahams <[email protected]>
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
Stefan Seefeld <[email protected]> writes:

> 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.

Are you sure?  Eric's sample code looks like it isn't dependent on
Windows; it's probably just a parser bug, no?

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.