Re: tree view for tablegen (llvm)
"Eric M. Ludlam" <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 05/23/2014 06:18 AM, Francesco Petrogalli wrote: > Hello everybody, > > I use ecb in emacs as my IDE, and I would like to extend the tree view > of the structure in the source files to support tablegen files > (http://llvm.org/docs/TableGen/index.html). > > It would be nice to show the inheritance tree of such structure, not > just the list of classes and records. > > Any suggestions where to start for this? Which part of cedet should I > extend? Hi Francesco, There used to be a handy tool for assembling all the different classes in a project into a class hierarchy. This code was problematic so was eventually deleted. There is something similar in the CEDET COGRE tool called "cogre-uml-quick-class" which has logic to do something similar, but it is a much better and simpler bit of code. That logic could be the basis of something for an ECB or speedbar display. It might be good to start with a function that creates a nested list in tree form for the classes you are interested in. Once you have that, creating displays in ECB or Speedbar are both documented in the respective tools. I'm a bit partial to speedbar, and ECB can embed speedbar, so that's nice. Does that help? Eric ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech