Page 1 of 1

How to attach more tags database?

Posted: Wed May 20, 2009 6:53 am
by Loaden
Example:
one tag database is for C++/w32API, and one database for wxWidgets, and the third database for boost.
how to attach three database at the same time?
Thanks!!

Re: How to attach more tags database?

Posted: Wed May 20, 2009 10:53 am
by eranif
You can only attach one database at a time.

The only solution for you is:
If you need more than one source symbols (e.g. boost+wx+win API) create them all in the same database.

1) Run the wizard first and select the source path (e.g. boost path), create the database and save it under a name 'wx-winapi-boost.tags'
2) Run the wizard again, select the second path (e.g. wxWidgets), follow the wizard - but this time, when it ask you for the database name, use the same name as used in step 1
3) You can add as many 'tags' as your want to this database

Eran

Re: How to attach more tags database?

Posted: Wed May 20, 2009 11:00 am
by Loaden
Thanks! I do it, but the database is too big now! it's most 100MB, and when autocomplete, it's slow.
Have some option to strip the database?

Re: How to attach more tags database?

Posted: Wed May 20, 2009 2:52 pm
by eranif
Try:

1) Parse only header (i.e. dont parse *.cpp / *.c file, only *.h/*.hpp)
2) avoid parsing un-used headers

Indeed, 100MB sounds like a big database to me

Eran

Re: How to attach more tags database?

Posted: Wed May 20, 2009 3:42 pm
by eranif
I just tried to tag the entire boost library, it produces a 76MB database size (the completion is pretty good for it, in terms of speed).

However, I am guessing that on not-so-new computer it could cause a performance issues, I strongly suggest that you tag what you need.

For example, if you need boost::scoped_ptr, then tag the boost/smart_ptr directory only.

and so on and forth.

Tip:

instead of starting the tags Wizard from the menu, you can right click on the folder from the 'Explorer' tab (from the 'Workspace View' pane) and select the 'Add Tags' options.

Eran

Re: How to attach more tags database?

Posted: Wed May 20, 2009 4:57 pm
by Loaden
Oh, I see!
thanks!