Thread: unneeded includes

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    201

    unneeded includes

    Anybody knows a good tool that removed unneeded #includes from large projects?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    PC-lint won't remove them, but it will tell you which ones are unnecessary.
    Code:
    #include <stdio.h>
    
    int main(void)
    {
       return 0;
    }
    test.c 10: [766 Info] Header file 'C:\Borland\BCC55\Include\stdio.h' not used in module 'test.c'
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    thats a good tool has some good features

    ssharish2005

  4. #4
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    I'd really like FlexeLint, but it's unbelievably expensive. I'm not sure why PC-Lint is so much cheaper. Makes it almost worth installing a DOS/Windows machine here just to run it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Includes making me insane >.<
    By IceDane in forum C Programming
    Replies: 14
    Last Post: 04-14-2008, 10:24 AM
  2. Makefile and includes
    By Lang in forum C Programming
    Replies: 4
    Last Post: 03-18-2008, 03:29 AM
  3. Avoiding multiple includes
    By plan7 in forum C Programming
    Replies: 5
    Last Post: 11-25-2007, 06:13 AM
  4. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  5. Why are using declarations passed over but not includes
    By indigo0086 in forum C++ Programming
    Replies: 7
    Last Post: 12-18-2006, 11:54 AM