Author Topic: Tag files problem  (Read 3086 times)

steve3d

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Tag files problem
« on: May 20, 2010, 08:56:57 AM »
Currently we are working on a game engine, and trying to use slickedit as script editor.

So, this game engine use C similar script engine, most functions are exported from c++ classes,  but If I create a tag file directly from C++ source, a lot of unused functions are imported, So I try to write a script only classes headers, but I don't need the reference of tag files, How can I do this?

I also found the vtg files are tag databases, and there is sdk with slickedit of tag files, is there any possible I can write the tags file with this sdk directly? If it is possible, how? is there any example of doing this?

I'm still a newbie to slickedit. ;D

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: Tag files problem
« Reply #1 on: May 20, 2010, 03:31:08 PM »
If you are creating a tag file by reading in a whole C/C++ source tree, that is going to tag both the headers and the implementation files, by default. There are 3 ways you can trim this down:

1. When you first create the tag file, change the "files of type" filter to not include all the C/C++ extensions. Whittle it down to *.h;*.hpp for example.

2. Do some surgery on the existing tag file by removing specific source files. When you go to Tools > Tag Files, and select your tag file in the list on the left, the individual sources are listed on the right. You can remove files from there.

3. If you just want a handful of files, start with an empty tag file. Go to Tools > Tag Files, click New Tag File, select C/C++, then give it a name in the Open/Save dialog and click OK.  But then click Cancel when the dialog comes up to browse for the source directory. That will give you a blank starter tag file. Then use the Add Files button to add individual source files to the tag database.