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. The Lounge
  3. dead (unused) code/resource analysis tools

dead (unused) code/resource analysis tools

Scheduled Pinned Locked Moved The Lounge
learningc++csstools
16 Posts 9 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.
  • M Offline
    M Offline
    MikeBeard
    wrote on last edited by
    #1

    Hi everyone! I was wondering if any of you know of decent tools that will analyze C++ code and point out unused code and/or resources. I've been tasked with finding all of the dialog resources in our application (more than 1200) and then try to figure out which of them are not being used (good possibility that a decent portion of them aren't used anymore). There is, of course, the hard way to do this, but I'm hoping that there are some sort of tools out there that would do this for me or, at least, make it less painful and tedious. Any pointers, tools, or suggestions will be greatly appreciated. Thanks! Mike

    M L H D 4 Replies Last reply
    0
    • M MikeBeard

      Hi everyone! I was wondering if any of you know of decent tools that will analyze C++ code and point out unused code and/or resources. I've been tasked with finding all of the dialog resources in our application (more than 1200) and then try to figure out which of them are not being used (good possibility that a decent portion of them aren't used anymore). There is, of course, the hard way to do this, but I'm hoping that there are some sort of tools out there that would do this for me or, at least, make it less painful and tedious. Any pointers, tools, or suggestions will be greatly appreciated. Thanks! Mike

      M Offline
      M Offline
      Mike Diack
      wrote on last edited by
      #2

      Gimpel's PC Lint can find dead code (functions, variables etc) (if you use it to do a whole project analysis), but can't find unused resources. See: http://www.gimpel.com and also: Visual Lint (a GUI tool for it): http://www.riverblade.co.uk/products/visual\_lint/index.html Good hunting, Mike

      M 1 Reply Last reply
      0
      • M MikeBeard

        Hi everyone! I was wondering if any of you know of decent tools that will analyze C++ code and point out unused code and/or resources. I've been tasked with finding all of the dialog resources in our application (more than 1200) and then try to figure out which of them are not being used (good possibility that a decent portion of them aren't used anymore). There is, of course, the hard way to do this, but I'm hoping that there are some sort of tools out there that would do this for me or, at least, make it less painful and tedious. Any pointers, tools, or suggestions will be greatly appreciated. Thanks! Mike

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        You mean static analysis tools? Check out Visual Lint[^] (Anna-Jayne and Beth's product) which intergrates Lint into VS very well. If you've got more money than a cat deserves there are tools like Macabe and Coverity.

        Visit http://www.notreadytogiveup.com/[^] and do something special today.

        M B 2 Replies Last reply
        0
        • M MikeBeard

          Hi everyone! I was wondering if any of you know of decent tools that will analyze C++ code and point out unused code and/or resources. I've been tasked with finding all of the dialog resources in our application (more than 1200) and then try to figure out which of them are not being used (good possibility that a decent portion of them aren't used anymore). There is, of course, the hard way to do this, but I'm hoping that there are some sort of tools out there that would do this for me or, at least, make it less painful and tedious. Any pointers, tools, or suggestions will be greatly appreciated. Thanks! Mike

          H Offline
          H Offline
          hairy_hats
          wrote on last edited by
          #4

          MikeBeard wrote:

          I've been tasked with

          Grumble, mutter...

          G M 2 Replies Last reply
          0
          • H hairy_hats

            MikeBeard wrote:

            I've been tasked with

            Grumble, mutter...

            G Offline
            G Offline
            Gary Wheeler
            wrote on last edited by
            #5

            On a go-forward basis, no doubt...

            Software Zen: delete this;

            D 1 Reply Last reply
            0
            • M Mike Diack

              Gimpel's PC Lint can find dead code (functions, variables etc) (if you use it to do a whole project analysis), but can't find unused resources. See: http://www.gimpel.com and also: Visual Lint (a GUI tool for it): http://www.riverblade.co.uk/products/visual\_lint/index.html Good hunting, Mike

              M Offline
              M Offline
              MikeBeard
              wrote on last edited by
              #6

              Thanks, I'll check it out. Too bad it can't find unused resources. I wonder if any package is going to (that I might be able to convince work to buy)? Thanks again! Mike

              A 1 Reply Last reply
              0
              • G Gary Wheeler

                On a go-forward basis, no doubt...

                Software Zen: delete this;

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #7

                naturally, being proactive synergizes core competencies...

                Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                G 1 Reply Last reply
                0
                • L Lost User

                  You mean static analysis tools? Check out Visual Lint[^] (Anna-Jayne and Beth's product) which intergrates Lint into VS very well. If you've got more money than a cat deserves there are tools like Macabe and Coverity.

                  Visit http://www.notreadytogiveup.com/[^] and do something special today.

                  M Offline
                  M Offline
                  MikeBeard
                  wrote on last edited by
                  #8

                  Trollslayer wrote:

                  If you've got more money than a cat deserves there are tools like Macabe and Coverity.

                  No, nothing like that. I'll probably have a hard time with convincing them to buy anything above $300 or so. :( What do you do though? Thanks for the link and suggestion. I'll certainly give it a look. Mike

                  1 Reply Last reply
                  0
                  • H hairy_hats

                    MikeBeard wrote:

                    I've been tasked with

                    Grumble, mutter...

                    M Offline
                    M Offline
                    MikeBeard
                    wrote on last edited by
                    #9

                    Steve_Harris wrote:

                    Grumble, mutter...

                    :laugh: Yes, I know. It's a phrase that is popular at work and I was tired. Sorry. :-O

                    1 Reply Last reply
                    0
                    • L Lost User

                      You mean static analysis tools? Check out Visual Lint[^] (Anna-Jayne and Beth's product) which intergrates Lint into VS very well. If you've got more money than a cat deserves there are tools like Macabe and Coverity.

                      Visit http://www.notreadytogiveup.com/[^] and do something special today.

                      B Offline
                      B Offline
                      Bassam Abdul Baki
                      wrote on last edited by
                      #10

                      McCabe is overpriced and overrated. Not sure if Understand or Lattix can do what he wants. Never tried looking for resources. Anna-Jayne had a tool called ResOrg for resources. Don't know if that found dead ones.


                      Web - Blog - RSS - Math - BM

                      1 Reply Last reply
                      0
                      • M MikeBeard

                        Hi everyone! I was wondering if any of you know of decent tools that will analyze C++ code and point out unused code and/or resources. I've been tasked with finding all of the dialog resources in our application (more than 1200) and then try to figure out which of them are not being used (good possibility that a decent portion of them aren't used anymore). There is, of course, the hard way to do this, but I'm hoping that there are some sort of tools out there that would do this for me or, at least, make it less painful and tedious. Any pointers, tools, or suggestions will be greatly appreciated. Thanks! Mike

                        D Offline
                        D Offline
                        David Knechtges
                        wrote on last edited by
                        #11

                        Not free, but I have used it and it works REALLY well for this. [^] Used it on a 1 million+ LOC project at my last job and it was very insightful for removing dead code, replicated code (because the dummies that worked there before me didn't understand the idea of using libraries!), and finding overall messy functions and modules. David

                        M 1 Reply Last reply
                        0
                        • D David Knechtges

                          Not free, but I have used it and it works REALLY well for this. [^] Used it on a 1 million+ LOC project at my last job and it was very insightful for removing dead code, replicated code (because the dummies that worked there before me didn't understand the idea of using libraries!), and finding overall messy functions and modules. David

                          M Offline
                          M Offline
                          MikeBeard
                          wrote on last edited by
                          #12

                          Thanks, I'll have to take a look at it.

                          1 Reply Last reply
                          0
                          • D Dan Neely

                            naturally, being proactive synergizes core competencies...

                            Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                            G Offline
                            G Offline
                            Gary Wheeler
                            wrote on last edited by
                            #13

                            Oooh, sounds kinky. I've only had my core competencies evaluated, or composted, or my composte synthesized, or something like that.

                            Software Zen: delete this;

                            1 Reply Last reply
                            0
                            • M MikeBeard

                              Thanks, I'll check it out. Too bad it can't find unused resources. I wonder if any package is going to (that I might be able to convince work to buy)? Thanks again! Mike

                              A Offline
                              A Offline
                              Anna Jayne Metcalfe
                              wrote on last edited by
                              #14

                              If I had time, I'd modify ResOrg to do it. :-O BTW, if you need help setting up PC-Lint to do whole project analysis, let me know. It's pretty straightforward, but takes a bit of getting used to at first.

                              Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                              M 1 Reply Last reply
                              0
                              • A Anna Jayne Metcalfe

                                If I had time, I'd modify ResOrg to do it. :-O BTW, if you need help setting up PC-Lint to do whole project analysis, let me know. It's pretty straightforward, but takes a bit of getting used to at first.

                                Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                                M Offline
                                M Offline
                                MikeBeard
                                wrote on last edited by
                                #15

                                Anna-Jayne Metcalfe wrote:

                                BTW, if you need help setting up PC-Lint to do whole project analysis, let me know. It's pretty straightforward, but takes a bit of getting used to at first.

                                Thanks Anna. If I can convince work to buy PC-Lint (which I'd love to have access to) then I might give a yell. Out of curiousity, does Visual Lint do the same as PC-Lint? Do you need PC-Lint for Visual Lint to work? I didn't get much time to look at the website, so if it says, sorry. If it does the same thing, then I'll gun for Visual Lint, as it would help someone here in the CodeProject community. Even if it's an add-on, I'll still shoot for it. It looks like it would be quite helpful. If you don't ask, you'll never know! :-D [edit] As I was clicking away from the site, I saw the answer. Works with PC-Lint. I must be blind! Ok, so now to convince work to get PC-Lint and then work on them to get other useful tools (Visual Lint) to help later, if I can't get it all in one pass. [/edit] ResOrg looks interesting as well. I'll have to go back and look at the site and features later. Thanks for the reply and help. This is something I'm going to have to tackle fairly soon, so ... Mike

                                A 1 Reply Last reply
                                0
                                • M MikeBeard

                                  Anna-Jayne Metcalfe wrote:

                                  BTW, if you need help setting up PC-Lint to do whole project analysis, let me know. It's pretty straightforward, but takes a bit of getting used to at first.

                                  Thanks Anna. If I can convince work to buy PC-Lint (which I'd love to have access to) then I might give a yell. Out of curiousity, does Visual Lint do the same as PC-Lint? Do you need PC-Lint for Visual Lint to work? I didn't get much time to look at the website, so if it says, sorry. If it does the same thing, then I'll gun for Visual Lint, as it would help someone here in the CodeProject community. Even if it's an add-on, I'll still shoot for it. It looks like it would be quite helpful. If you don't ask, you'll never know! :-D [edit] As I was clicking away from the site, I saw the answer. Works with PC-Lint. I must be blind! Ok, so now to convince work to get PC-Lint and then work on them to get other useful tools (Visual Lint) to help later, if I can't get it all in one pass. [/edit] ResOrg looks interesting as well. I'll have to go back and look at the site and features later. Thanks for the reply and help. This is something I'm going to have to tackle fairly soon, so ... Mike

                                  A Offline
                                  A Offline
                                  Anna Jayne Metcalfe
                                  wrote on last edited by
                                  #16

                                  Anytime! If there's anything I can do to help, just let me know. :rose:

                                  Anna :rose: Having a bad bug day? Tech Blog | Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

                                  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