Static Analysis code reqired for C++
-
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 ]
-
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 ]
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
-
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 ]
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)