Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Recently I've read this blog about Google integrating Clang parser into their code analysis tools

This is something in which C++ is at least a decade behind other languages like Java, but now that llvm-clang is almost C++ iso-ready, I think its possible for C++ code analysis tools to begin using the C++ parser effectively, since it has been designed from the ground up precisely for this

I'm wondering if there are existing open source or known commercial projects taking this path, integrating with Clang to provide higher-level analysis tools?

share|improve this question

closed as not constructive by gnat, Martijn Pieters, Walter, MichaelT, Oleksi Mar 24 '13 at 17:38

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer

up vote 1 down vote accepted

Have you looked at the Clang static analyzer?

...source code analysis tool that finds bugs in C, C++, and Objective-C programs.

Currently it can be run either as a standalone tool or within Xcode. The standalone tool is invoked from the command line, and is intended to be run in tandem with a build of a codebase.

The analyzer is 100% open source and is part of the Clang project...

http://clang-analyzer.llvm.org/images/analyzer_xcode.png

http://clang-analyzer.llvm.org/images/analyzer_html.png

share|improve this answer
    
still not doing c++, only C and objective-C, but thanks for the reference! –  lurscher Jun 24 '11 at 22:44
    
@lurscher: oops -- quite right. –  Jerry Coffin Jun 24 '11 at 23:50
    
Since clang-3.0 it now does C++. –  Benjamin Bannier Dec 10 '11 at 15:04
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.