Re: [Doxygen-develop] Patch for linking to TCL class members with 'dot' in their name
Brought to you by:
dimitri
From: Tom G. <tom...@ex...> - 2013-11-04 10:33:30
|
Hi all, I filed this as BUG 711387 ( https://bugzilla.gnome.org/show_bug.cgi?id=711387 ) With best regards, Tom. On ma, 2013-11-04 at 10:15 +0100, Tom Ghyselinck wrote: > Hi all, > > There is a bug in doxygen-1.8.5 with TCL classes with a dot in their > name. > > When we want to use \link to these members, the resolution of the name > fails. > > This is due to the fact that the any dot in a name is subsituted by > '::' as > if it was a scope separator. > This is very suitable and convenient for C++ / Java / etc., where a > dot > in function names and class members is not allowed, > but TCL does allow a dot in function names. > > I wrote a (quick and (maybe not so) dirty) patch for doxygen-1.8.5. > > The function resolveRef in util.h/util.c now has an additional > argument dotIsScopeSeparator. When this is set to FALSE, > a 'dot' in the reference name won't be translated to '::'. > > For compatibility, it defaults to TRUE. > The Q&D part now exists in the fact that, the rest of the code > still uses the compatible call. The function itself tries to resolve > with dotIsScopeSeparator = FALSE when resolving with > dotIsScopeSeparator = TRUE fails. > > I added a simple test project with several links as suggested by > http://www.stack.nl/~dimitri/doxygen/manual/autolink.html > > With best regards, > Tom. > > > -- ________________________________________________________________________ | tom...@ex... | | Tom Ghyselinck | Senior Engineer | Excentis N.V. | Gildestraat 8 B-9000 Ghent, Belgium | Tel: +32 9 269 22 91 - Fax: +32 9 329 31 74 ________________________________________________________________________ |