20

Possible Duplicate:
What open source C++ static analysis tools are available?

Does anybody know of an open source,good static code analyzer for C++ code in Linux ? The idea is to catch programming errors even before the code goes in to the code review state. It would be great to have the possibility to add rules the tool. Does anybody know of such tool?

0

4 Answers 4

7
Sign up to request clarification or add additional context in comments.

Comments

3

you can give a try pvs-studio:

http://www.viva64.com/en/pvs-studio/ (1)

also there is (bla-bla-lint): http://www.gimpel.com/html/index.htm (2)

missed note about linux, FlexeLint for C/C++ from (2) has linux support, (1) only for windows, you can check it only if your product crossplatform.

Comments

2

You can also customize GCC (4.6) by using plugins (coded in C) or MELT extensions (MELT is a high-level domain specific language to extend and customize GCC). This approach could be appropriate if you have your own coding rules that you want to check. However, it does take some work.

Comments

2

Take a look at clang's static analizer: http://clang-analyzer.llvm.org/

There are other tools like KLEE based on llvm, might worth a look, too.

1 Comment

Check out clang -Weverything but be aware that there will be a lot of false positives

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.