[cfe-dev] Clang Static Analyzer without scan-build

Aditya Kumar hiraditya at codeaurora.org
Tue Jul 30 14:37:58 PDT 2013


I was looking at the same problem and planning to work on it.

What I'm planning to do is having a compiler flag which enables a user to
perform compilation as well as static analysis at the same time,

and make relevant changes in the clang driver to build a set of 'Actions' in
the pipeline such that static analysis and compilation takes place
simultaneously.

This will have an overhead on the overall compilation time which is often
not the desirable thing. But there is an advantage that this flag can be
incorporated in the build-system of software.

Since the build systems are really good at tracking the files which have
changed and compiling only the minimal set of required files, 

the overall turnaround time of static analysis will be very small and user
can afford to run static analyzer with every build.

 

I wanted some feedback if this is a good idea or not.

 

-Aditya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130730/7ae92970/attachment.html>


More information about the cfe-dev mailing list