[CEDET-devel] Re[1]: Prototypes and definitions
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2004-03-24 16:45:25
|
>>> "Berndl, Klaus" <kla...@sd...> seems to think that: >Hi Eric, David, > >how difficult would it be to divide the children-tags with tag-class >'function of a type into a bucket "Prototypes" and a second bucket >"Definitions" (of course these bucket-names could be named better ;-) >instead of one bucket "methods".... Especially for C++ this would be >very good, because here semantic adopts all external function-members >to the class-tag which is already wonderful but it would be even more >wonderful if the function-members would divided into two different >buckets.... > >Of course ECB could itself reorganize the bucketizing but IMHO this >should be done by semantic itself. [ ... ] Hi Klaus, The existing sorting algorithms for semantic are pretty simple. For `semantic-bucketize', you can do this: (let ((semantic-bucketize-tag-class (lambda (tag) (cond ((semantic-tag-get-attribute tag :prototype-flag) 'protoytpe) (t (semantic-tag-class tag))))) (semantic-symbol->name-assoc-list-for-type-parts (cons '(protoytpe . "Prototype") semantic-symbol->name-assoc-list-for-type-parts))) (semantic-bucktize my-tags)) which I hope is clear. Eric -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |