#780 closed enhancement (fixed)
Perform Doxygen-like name mangling
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Component: | DoxygenPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
The current version has problems finding named objects in namespaces, as doxygen encodes '::' as '_1_1' in the filename and some other characters, too (see utils.cpp:escapeCharsInString()
). The following patch fixes it. I had to do a few things differently, as you can't have spaces in a WikiLink, but doxygen maps TypeTrait<bool>
to TypeTrait< bool >
. Currently the mapper adds the spaces (resp. their code), to make doxygen:TypeTrait<bool>
work right. This might barf in other languages or other situations, but seems to work ok for now.
It also adds a default namespace option to the .ini that is searched if the global name is not found. This simplifies support for system where everything is in a common namespace.
Hope it helps
Dirk
Attachments (3)
Change History (8)
Changed 18 years ago by
Attachment: | doxygen_namespace.diff added |
---|
comment:1 follow-up: 2 Changed 17 years ago by
I can't seem to download the diff file (it just links to a page saying when it was added), could somebody send it to me? All my code is inside a namespace, so this patch would really make doxygenplugin much more useful to me.
Thanks, Emlyn
comment:2 Changed 17 years ago by
Replying to Emlyn.Corrin@cern.ch:
I can't seem to download the diff file (it just links to a page saying when it was added), could somebody send it to me?
Hm, not sure what went wrong there. I attached a full version of the code.
Hope it helps
Dirk
comment:3 Changed 17 years ago by
Summary: | Searching for named objects in namespaces support → Perform Doxygen-like name mangling |
---|
Attached a unified diff version of the above patch ticket:780:doxygen_namespace.diff. This patch basically performs some name mangling in a similar way to how Doxygen does it.
Changed 17 years ago by
Attachment: | doxygen_namemangling.patch added |
---|
Unified diff version of ticket:780:doxygen_namespace.diff
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 17 years ago by
Trac Release: | 0.10 → 0.11 |
---|
namespace search patch