Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 feature request for include completeness test
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

daThomas
Junior Member

15 Posts

Posted - Mar 29 2006 :  09:25:01 AM  Show Profile  Reply with Quote
Hi,

with the symbol database it should be possible to test a file for missing includes. you could check all class names and look for the include of the corresponding h-file. there may be problems with
'using namespace' and things like that but a first version should not be too har to implement.
would be a great feature to avoid missing includes that were included by an already existing include in the origiginal version of the file.

Edited by - support on Mar 29 2006 1:29:51 PM

support
Whole Tomato Software

5566 Posts

Posted - Mar 29 2006 :  1:30:29 PM  Show Profile  Reply with Quote
Interesting idea, which we've considered previously. The trick is getting it right.
Go to Top of Page

daThomas
Junior Member

15 Posts

Posted - Mar 30 2006 :  01:09:36 AM  Show Profile  Reply with Quote
There may be many special cases like preprocessor statements, macros, scope problems and other stuff. But what about a first version testing
a) includes that are not needed
b) missing includes
c) information about lines of code that not so easy to decide

one could work them through and would have a good feeling. You could insert a rule to just apply the feature to code that compiles error and warning free. by this way, it would be easy to get rid of indirect includes.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000