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. General Programming
  3. C / C++ / MFC
  4. Advice needed for a tool for c++ code analysis

Advice needed for a tool for c++ code analysis

Scheduled Pinned Locked Moved C / C++ / MFC
c++comdebuggingtoolsperformance
7 Posts 4 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.
  • R Offline
    R Offline
    Renjith Ramachandran
    wrote on last edited by
    #1

    I'm working with a project with fairly large codebase. so i'm looking for some tools, which can function the following task - Code profiling - Code formatting - Dead code detection - Clone Detection Do you know any products which helps to do all of these?, or more than that? i don't mind to purchase it even if it costs up to $15,000/-

    Never Work Hard! - Work Smart!!! www.indianITforum.com

    D 1 Reply Last reply
    0
    • R Renjith Ramachandran

      I'm working with a project with fairly large codebase. so i'm looking for some tools, which can function the following task - Code profiling - Code formatting - Dead code detection - Clone Detection Do you know any products which helps to do all of these?, or more than that? i don't mind to purchase it even if it costs up to $15,000/-

      Never Work Hard! - Work Smart!!! www.indianITforum.com

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Renjith Ramachandran wrote:

      Do you know any products which helps to do all of these?

      I don't know if it does all, but Visual Studio comes with a profiler.

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      S R 2 Replies Last reply
      0
      • D David Crow

        Renjith Ramachandran wrote:

        Do you know any products which helps to do all of these?

        I don't know if it does all, but Visual Studio comes with a profiler.

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        S Offline
        S Offline
        sashoalm
        wrote on last edited by
        #3

        Can Visual Studio detect dead code btw? It's something I've wanted to do for some time, as I find old functions sometimes in my code that aren't used anymore, but only when I stumble on them.

        There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

        D B 2 Replies Last reply
        0
        • S sashoalm

          Can Visual Studio detect dead code btw? It's something I've wanted to do for some time, as I find old functions sometimes in my code that aren't used anymore, but only when I stumble on them.

          There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          sashoalm wrote:

          Can Visual Studio detect dead code btw?

          Technically, yes. I'm sure there is a more automated, efficient way, but I just put the cursor on some function, then select Source Browser from the Tools menu. In the list, select References or Callers Graph. If I needed to do this more often, I would explore other options.

          "Love people and use things, not love things and use people." - Unknown

          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

          S 1 Reply Last reply
          0
          • S sashoalm

            Can Visual Studio detect dead code btw? It's something I've wanted to do for some time, as I find old functions sometimes in my code that aren't used anymore, but only when I stumble on them.

            There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

            B Offline
            B Offline
            BonshatS
            wrote on last edited by
            #5

            I don't know about VS2008 but VS2005 doesn't seem to be able to. It's kind of funny though. It can detect single vars that are unused, but not entire functions or classes including non-virtual ones.

            1 Reply Last reply
            0
            • D David Crow

              Renjith Ramachandran wrote:

              Do you know any products which helps to do all of these?

              I don't know if it does all, but Visual Studio comes with a profiler.

              "Love people and use things, not love things and use people." - Unknown

              "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

              R Offline
              R Offline
              Renjith Ramachandran
              wrote on last edited by
              #6

              visual studio features are not enough for my purpose. anyway thanks for your help.

              Never Work Hard! - Work Smart!!! www.indianITforum.com

              1 Reply Last reply
              0
              • D David Crow

                sashoalm wrote:

                Can Visual Studio detect dead code btw?

                Technically, yes. I'm sure there is a more automated, efficient way, but I just put the cursor on some function, then select Source Browser from the Tools menu. In the list, select References or Callers Graph. If I needed to do this more often, I would explore other options.

                "Love people and use things, not love things and use people." - Unknown

                "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                S Offline
                S Offline
                sashoalm
                wrote on last edited by
                #7

                I do something like that too (I use Visual Assist X and it has a similar feature) or just 'Find in Files' cause it's faster. But it's still only one function at a time, and I already have to suspect it is dead code. I was thinking maybe the compiler/linker had some verbose mode that could report dead code.

                There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal

                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