Hi,
That seems like a good idea. The simple routine
`semantic-bucketize' does the work on the buffer's tags, but the
speedbar support doesn't re-run it on the contents of the namespace.
When I ran your default example, my speedbar output was:
[-] foo.cpp
{-} Types
-> bread_name{}
+> funca()
+> funcb()
+> funca()
+> funcb()
-> panda{}
+> funca()
+> funcb()
-> bread{}
+> funca()
+> funcb()
so it did both.
You should investigate semantic-bucketize to see if there is some
tweak you would like.
Eric
>>> bread <breaddawson@...> seems to think that:
>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.
>
--
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net
|