Hi,

I found that tags for cpp files are not output in class structure, while using namespace

For example,

// main.cpp
namespace bread_name{
    int bread::funca()
    {
        return 0;
    }

    int bread::funcb()
    {
        return 0;
    }

    int panda::funca()
    {
        return 0;
    }

    int panda::funcb()
    {
        return 0;
    }
}
 
The tags in imenu and speedbar will look like this:

bread:namespace ->
                                     funca:int
                                     funcb:int
                                     funca:int
                                     funcb:int

If the delete "namespace bread_name", it will look like this:

bread:struct ->
                           funca:int
                           funcb:int

panda:struct ->
                           funca:int
                           funcb:int

So i think it will be better for the former to display like this:

bread_name:namespace
            bread:struct ->
                                       funca:int
                                       funcb:int

            bread:struct ->
                                       funca:int
                                       funcb:int

Thanks.

--
Zhiqiu Kong (孔直秋)

EDA Labs
Dept. Computer Science & Technology
Tsinghua University
P.R China
100084