[cfe-dev] Libclang static analyzer
ganna at apple.com
Mon Jan 30 11:03:43 PST 2012
The Static Analyzer (as well as CodeGen) is not a part of libclang. Most likely it should stay that way since libclang is mostly responsible for AST queries (syntax only analyzes).
On Jan 29, 2012, at 1:32 PM, Fredrik Ehnbom wrote:
> Great, I didn't know that.
> Is there anyway to get libclang to spit out a plist or get the
> diagnostics via the libclang api though? On the *nixes it's not a big
> problem, but on Windows libclang.dll is much easier to ship with the
> plugin compared to requiring users to install the full clang
> 2012/1/29 David Chisnall <csdavec at swan.ac.uk>:
>> The static analyser can export its results in a property list. The best way of using it from another tool is to do what XCode does - invoke it in a separate process and then read the resulting property list.
>> On 29 Jan 2012, at 20:10, Fredrik Ehnbom wrote:
>>> Is it possible to run the static analyzer and get the diagnostics with libclang?
>>> I'm thinking some command line option could enable it and then you get
>>> the diagnostics, ranges and fixits as usual, but nothing I've tried
>>> seems to do the trick. Am I missing something or is it just not
>>> supported? What would it take to get it to work?
>>> The use case I'm trying to enable is static analyzer support via a
>>> python plugin for a text editor.
>>> Many thanks,
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev