Re: Patch for linking to TCL class members with 'dot' in their name
Tom Ghyselinck <[email protected]> Mon, 04 Nov 2013 11:33:16 +0100
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <1383561196.1688.40.camel@laptop-tom> |
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. > > > -- ________________________________________________________________________ | [email protected] | | 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 ________________________________________________________________________ ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Doxygen-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/doxygen-develop