Auto completion of C function names across files in a project

Syntax highlighting, code folding, brace matching, code indenting, and function list

Auto completion of C function names across files in a project

Postby Dobichan » Thu Jan 13, 2005 8:25 am

Hi,

I'm having problems getting auto completion to work. I seems like only the functions present in the current file are listed. I have a full CTAG scan working and the function list view contains all the functions in my projects. According to the help file, I should be able to have auto completion of all the functions in the function listing. But this is not working. How do I get this to work? Is it even possible?

// Harald :)
User avatar
Dobichan
Newbie
 
Posts: 1
Joined: Thu Jan 13, 2005 12:00 am

Re: Auto completion of C function names across files in a project

Postby Mofi » Thu Jan 13, 2005 9:24 am

The auto-completion recognizes all names in the function list, but only those from the current file. This is not mentioned in the help. It seems, IDM has forgotten it to add this fact to the help after adding the feature of showing all functions of the whole project in the function list.

You can right-click on the function list and copy the list to clipboard. Now open either the wordfile for syntax highlighting and add all function names to a language group (a new group) of the current language set or save the function names to a special auto-complete file. For both versions you need to update the list in the corresponding file manually when you add a new function.

The problem with auto-complete of all function names of all project files is, that the function list normally contains the names of all functions, independent if the function is private or public. So the auto-completion would also show/add functions, which cannot be called from the actual module, because the function is not public in the other module.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting

cron