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. Managed C++/CLI
  4. Static Analysis code reqired for C++

Static Analysis code reqired for C++

Scheduled Pinned Locked Moved Managed C++/CLI
c++javacomlinuxhelp
3 Posts 3 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.
  • G Offline
    G Offline
    GauranG Shah
    wrote on last edited by
    #1

    After a long time guys, I am back to C++, however this time working as a tester. I actually want some kind of tool for static analysis of the code, like checkstyle in JAVA. And I need that for Linux Platform and should be free. What i mean by static analysis is, it tell you the coding style error, unused variable and function names Gaurnag shah

    [ Screen Capture ][ Tool Tip ][ Muliple Desktops ][Greeting Card ]

    J S 2 Replies Last reply
    0
    • G GauranG Shah

      After a long time guys, I am back to C++, however this time working as a tester. I actually want some kind of tool for static analysis of the code, like checkstyle in JAVA. And I need that for Linux Platform and should be free. What i mean by static analysis is, it tell you the coding style error, unused variable and function names Gaurnag shah

      [ Screen Capture ][ Tool Tip ][ Muliple Desktops ][Greeting Card ]

      J Offline
      J Offline
      John Schroedl
      wrote on last edited by
      #2

      I have personally used two C++ static code analysis tools. 1. Visual Studio. I believe all SKUs of VS 2013 now include code analysis tools though the level of analysis in the Free express edition is not as nice as in the paid versions. Menu is: ANALYZE > Run Code Analysis on Solution. 2. Klocwork. We pay for a Klocwork license [^]. I'm not sure if they have a trial or free version available. A caveat: Klocwork does not handle C++/CLI code however so it skips the /clr files. We have a large body of portable plain C++ code so it works well with that code. I'm sure there are other tools but C++ code analysis is difficult and most are expensive commercial tools. John

      1 Reply Last reply
      0
      • G GauranG Shah

        After a long time guys, I am back to C++, however this time working as a tester. I actually want some kind of tool for static analysis of the code, like checkstyle in JAVA. And I need that for Linux Platform and should be free. What i mean by static analysis is, it tell you the coding style error, unused variable and function names Gaurnag shah

        [ Screen Capture ][ Tool Tip ][ Muliple Desktops ][Greeting Card ]

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

        http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis[^] Most of the tools are commercial, but if it is your job, and you find that one of the commercial tools will notably improve the quality or speed of your work, you shouldn't have any problems convincing your boss to buy a license. The free ones I've tried are rather limited in scope and capabilities.

        GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

        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