linking to typedefs, enums, enum values, and variables in namespaces

View: New views
2 Messages — Rating Filter:   Alert me  

linking to typedefs, enums, enum values, and variables in namespaces

by Joachim Reichel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I face some problems when linking to typedefs, enums, enum values, and
variables in namespaces. Consider this example:

/// \file

/// namespace N
namespace N {

/// typedef T
typedef int T;

/// enum E
enum E {
     V = 0 //!< enum value V
};

/// global variable G
int G;

} // namespace N

/// typdef: #N::T, ::N::T, N::T
/// enum: #N::E, ::N::E, N::E
/// enum value: #N::V, ::N::V, N::V
/// global variable: #N::G, ::N::G, N::G
int main (int argc, char* argv[])
{
   return 0;
}

I would prefer to use explicit links (# or :: prefix) to get warnings
when these items get renamed. But that does not work:

1. The link tests with # and :: prefix do not generate any link. The
third link test in each row (without # or :: prefix) does generate a
link. I would expect that all of them (or at least the first two)
generated a link.

2. The first test (# prefix) generates a warning which I do not
understand since it works without prefix.

3. The second test (:: prefix) does not even generate a warning.

The problem is related to the namespace. Without namespaces everything
works as expected. I also haven't noticed any such problems with
classes, member functions, and (global) functions.

What am I missing here?

I'm using doxygen 1.5.9 and 1.6.1.

   Joachim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Doxygen-users mailing list
Doxygen-users@...
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Re: linking to typedefs, enums, enum values, and variables in namespaces

by Joachim Reichel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> I face some problems when linking to typedefs, enums, enum values, and
> variables in namespaces. Consider this example:
>
> /// \file
>
> /// namespace N
> namespace N {
>
> /// typedef T
> typedef int T;
>
> /// enum E
> enum E {
>      V = 0 //!< enum value V
> };
>
> /// global variable G
> int G;
>
> } // namespace N
>
> /// typdef: #N::T, ::N::T, N::T
> /// enum: #N::E, ::N::E, N::E
> /// enum value: #N::V, ::N::V, N::V
> /// global variable: #N::G, ::N::G, N::G
> int main (int argc, char* argv[])
> {
>    return 0;
> }
>
> I would prefer to use explicit links (# or :: prefix) to get warnings
> when these items get renamed. But that does not work:
>
> 1. The link tests with # and :: prefix do not generate any link. The
> third link test in each row (without # or :: prefix) does generate a
> link. I would expect that all of them (or at least the first two)
> generated a link.
>
> 2. The first test (# prefix) generates a warning which I do not
> understand since it works without prefix.
>
> 3. The second test (:: prefix) does not even generate a warning.
>
> The problem is related to the namespace. Without namespaces everything
> works as expected. I also haven't noticed any such problems with
> classes, member functions, and (global) functions.
>
> What am I missing here?
>
> I'm using doxygen 1.5.9 and 1.6.1.

no answer so far. I assume I didn't do anything obvious wrong.

This problem is now filed as bug 600829.

   Joachim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Doxygen-users mailing list
Doxygen-users@...
https://lists.sourceforge.net/lists/listinfo/doxygen-users