Fredrik Orderud | 23 Dec 09:33 2011
Picon

PATCH: Exclude C++ std::string/wstring from diagrams

The BUILTIN_STL_SUPPORT option is great for enabling doxygen to parse
C++ classes containing STL containers and smart-pointers. It does,
however, also lead to some "noise" in the diagrams; especially for
text strings. I don't personally see the big value of adding separate
boxes for e.g. std::string members in collaboration diagrams for
classes containing strings. Instead, text strings could be considered
a "primitive" type, like int, float etc.

Would it be possible to consider the STL string classes as "primitive"
types, and exclude them from collaboration (and possibly other)
diagrams?

A patch that attempts to do so is attached.
Attachment (exclude_std_string.patch): application/octet-stream, 3108 bytes
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Doxygen-develop mailing list
Doxygen-develop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-develop
Fredrik Orderud | 23 Dec 13:02 2011
Picon

Re: PATCH: Exclude C++ std::string/wstring from diagrams

On Fri, Dec 23, 2011 at 10:58 AM, Dimitri Van Heesch <doxygen <at> gmail.com> wrote:
>> Would it be possible to consider the STL string classes as "primitive"
>> types, and exclude them from collaboration (and possibly other)
>> diagrams?
>
> Makes sense. I'll include your patch. If anyone sees problem with it,
> please let me know.

Thank you. :-)

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
Fredrik Orderud | 26 Dec 15:34 2011
Picon

Re: PATCH: Exclude C++ std::string/wstring from diagrams

On Mon, Dec 26, 2011 at 11:59 AM, Dimitri Van Heesch <doxygen <at> gmail.com> wrote:

> The patch has unwanted side-effects :-(
> Parameter matching can now fail when the type is a std::string where it previously succeeded,
> so I had to remove the patch again.

Ok. That is understandable. Do you have any ideas of alternative
approaches for excluding text strings from the diagrams?

Regards,
Fredrik

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev