I\'m busy learning Common Lisp, & I\'m looking for a static code anal开发者_运维百科ysis tool that will help me develop better style & avoid falling into common traps.
I\'m working on a program that should be able to tell if any program I run on my computer will crash.
We use Parasoft C++test to statically analyze our code. It\'s having trouble with code like the following:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We have a die function that outputs an error message and exits, e.g.: void die(const char* msg) { fprintf(stderr, \"Error: %s\\n\", msg);
Quick one folks. Have a quick look at the code snippet below. I alloc the UILabel *textLabel but I don\'t release it (commented out). When the method ends, I lose reference to the pointer so it leaks.
Are there any tools, libraries, or frameworks to get the control flow 开发者_C百科graph of a C program, and find the worst possible path a program can take?
I have a Comp开发者_JAVA技巧arator that checks \"null\"s for the two objects before comparing their contents.
CheckStyle offers to check for consistent use of spaces, but sadly lacks the opposite idea: Force source code to use tabs. Is there some way to add this functi开发者_运维技巧onality? It does not have
Are there any test classes where PMD rule can be tested ? Basically i want to benchmark some other tool again PMD\'s basic rule set. Like PMd must be testing its rule against some te开发者_运维知识库s