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. Static Code Analysis Tools

Static Code Analysis Tools

Scheduled Pinned Locked Moved The Lounge
csharpc++toolsquestion
11 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.
  • J Offline
    J Offline
    Joe Woodbury
    wrote on last edited by
    #1

    We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

    OriginalGriffO M A M D 7 Replies Last reply
    0
    • J Joe Woodbury

      We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      I've played with klockwork, but all the springs went "boing" and I lost a couple of cogs... :sigh:

      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      M 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        I've played with klockwork, but all the springs went "boing" and I lost a couple of cogs... :sigh:

        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

        M Offline
        M Offline
        Marco Bertschi
        wrote on last edited by
        #3

        We are experimenting with clockwork, but about a ton of the messages come from the Qt framework which we use to base our SW upon :^)

        **Marco Bertschi


        Twitter | Articles | G+**

        1 Reply Last reply
        0
        • J Joe Woodbury

          We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

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

          The firm I work for uses Coverity at some sites, but not at others - e.g. the UK office I'm based at. I know Coverity (in particular) and Klockwork are good, but are massively expensive - typically 6 figures for us, annually, because of the annual licensing arrangements (the analysis work is done by (remote) servers and cost is roughly proportional to codebase size). At our UK site and in some of our other sites we use Gimpel Software's PC Lint, which I love, and is much much less expensive and is a one time low cost option, that enables every developer to analyse on their local machine. Mike

          1 Reply Last reply
          0
          • J Joe Woodbury

            We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

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

            Over the last few years we've used a variety of analysis tools for C/C++ and C#, including TICS (C++/C#), FxCop (C#), PC-lint (C/C++), Vera++ (C++), CppCheck (C++) and cpplint (C++). Of those, the one we use on a day to day basis with our C++ code (which is the vast majority of our codebase) is PC-lint. It's a hell of lot less expensive (and has no yearly subscriptions) than Klocwork , Coverity or Parasoft, and is very good at catching the sort of nasties and inconsistencies that programmers typically inadvertently write into the code. It is however rather tricky to configure (the flip side is that it's almost infinitely configurable) - which is why I started writing Visual Lint[^] back in 2004. We've got versions of Visual Lint that run both centrally on the build server as well as interactively on the desktop, with plug-ins for Visual Studio and Eclipse as well as a standalone GUI client. The product documentation[^] should give you a good idea of how it all works together, but feel free to drop me a line if you need more info or something in there isn't clear.

            Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

            1 Reply Last reply
            0
            • J Joe Woodbury

              We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

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

              I worked with Parasoft with our projects written in C. Before using it you should have a rule set accordıng to your coding standard. It has some predefined sets though (i.e MISRA) but you can also add/modify rules. You should be well aware of the language syntax. I find that tool very useful. We found some potential bugs before test phase, saved us many defect and change requests :cool:

              1 Reply Last reply
              0
              • J Joe Woodbury

                We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

                D Offline
                D Offline
                dazfuller
                wrote on last edited by
                #7

                On the last project I worked on we were using Cppcheck[^] for static code analysis. We had it integrated with our build process so that we could get a report of any issues each morning.

                Eagles may soar, but weasels don't get sucked into jet engines

                1 Reply Last reply
                0
                • J Joe Woodbury

                  We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

                  W Offline
                  W Offline
                  w peuker
                  wrote on last edited by
                  #8

                  Cppcheck, it's OSS, good at C and C++ (even C++11), and it gets better every 2-3 months (see their roadmap). BTW: the team is very reactive to well-formed bug reports! :)

                  J 1 Reply Last reply
                  0
                  • W w peuker

                    Cppcheck, it's OSS, good at C and C++ (even C++11), and it gets better every 2-3 months (see their roadmap). BTW: the team is very reactive to well-formed bug reports! :)

                    J Offline
                    J Offline
                    Joe Woodbury
                    wrote on last edited by
                    #9

                    Cppcheck is good for C++, but not great and missed some critical errors caught by PVS-Studio (which is very nice, but still C++ only.) It also generated more noise and a series of baffling false positives in one set of code. ReSharper picks up some C# errors, but also seems to fall short for me.

                    1 Reply Last reply
                    0
                    • J Joe Woodbury

                      We are currently evaluating several static code analysis tools for C++ & C#, namely Coverity, Klockwork and Parasoft. Does anyone have experience with any of these?

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

                      Try also PVS-Studio Static Code Analyzer for C/C++/C++11. Examples of use: http://www.viva64.com/en/examples/[^]

                      J 1 Reply Last reply
                      0
                      • L Lost User

                        Try also PVS-Studio Static Code Analyzer for C/C++/C++11. Examples of use: http://www.viva64.com/en/examples/[^]

                        J Offline
                        J Offline
                        Joe Woodbury
                        wrote on last edited by
                        #11

                        I have; I really liked it.

                        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