Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Include and Dependancy Checker

Include and Dependancy Checker

Scheduled Pinned Locked Moved IT & Infrastructure
csharpc++question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DAve
    wrote on last edited by
    #1

    Hi all, I'm currently involved on a C++ project (using .NET 2003) which is taking much too long to build. I believe this is due to uneccessary #include dependancies (i.e. headers included which are not needed by the code in that file, or a where a pre-declaration would do). Does anyone know of a tool which can analyze the code and point out these errors? Cheers, DAve (P.S. I must add I inherited the code... Its not my fault :))

    M 1 Reply Last reply
    0
    • D DAve

      Hi all, I'm currently involved on a C++ project (using .NET 2003) which is taking much too long to build. I believe this is due to uneccessary #include dependancies (i.e. headers included which are not needed by the code in that file, or a where a pre-declaration would do). Does anyone know of a tool which can analyze the code and point out these errors? Cheers, DAve (P.S. I must add I inherited the code... Its not my fault :))

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      There's one right here on CP: Include File Hierarchy Viewer[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ----

      D 1 Reply Last reply
      0
      • M Michael Dunn

        There's one right here on CP: Include File Hierarchy Viewer[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ----

        D Offline
        D Offline
        DAve
        wrote on last edited by
        #3

        Cheers for that, This will indeed show the include heiarachy, which is a great place to start for a manual search. The problem is I was looking for something a little more complex. What I would like is a tool that would look at the include files listed in a CPP and indicate if the included file is actually not needed. Or where a header is included in another header where a predeclaration could be used instead. i.e. #include "cBar.h" class cFoo { cBar *mValue; } Should be... class cBar; class cFoo { cBar *mValue; } DAve

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups