Re: [RFC v2 00/10] Introduce an extensible static analyzer

2022-10-15 Thread Christian Schoenebeck
On Freitag, 14. Oktober 2022 00:00:58 CEST Paolo Bonzini wrote: [...] > However, it seems like a lost battle. :( Some of the optimizations are > stuff that you should just not have to do, for example only invoking > "x.kind" once (because it's a property not a field). Another issue is > that the

Re: [RFC v2 00/10] Introduce an extensible static analyzer

2022-10-13 Thread Paolo Bonzini
On Fri, Jul 29, 2022 at 3:01 PM Alberto Faria wrote: > Performance isn't great, but with some more optimization, the analyzer > should be fast enough to be used iteratively during development, given > that it avoids reanalyzing unmodified translation units, and that users > can restrict the set

Re: [RFC v2 00/10] Introduce an extensible static analyzer

2022-08-16 Thread Marc-André Lureau
Hi On Fri, Aug 12, 2022 at 7:49 PM Alberto Faria wrote: > > On Thu, Aug 4, 2022 at 12:44 PM Marc-André Lureau > wrote: > > On fc36, I had several dependencies I needed to install manually (imho > > they should have been pulled by python3-clang), but more annoyingly I > > got: > >

Re: [RFC v2 00/10] Introduce an extensible static analyzer

2022-08-12 Thread Alberto Faria
On Thu, Aug 4, 2022 at 12:44 PM Marc-André Lureau wrote: > Hi > > Great work so far! This seems easier to hack than my attempt to use > clang-tidy to write some qemu checks > (https://github.com/elmarco/clang-tools-extra) > > The code seems quite generic, I wonder if such a tool in python wasn't

Re: [RFC v2 00/10] Introduce an extensible static analyzer

2022-08-04 Thread Marc-André Lureau
Hi On Fri, Jul 29, 2022 at 5:01 PM Alberto Faria wrote: > > This series introduces a static analyzer for QEMU. It consists of a > single static-analyzer.py script that relies on libclang's Python > bindings, and provides a common framework on which arbitrary static > analysis checks can be

[RFC v2 00/10] Introduce an extensible static analyzer

2022-07-29 Thread Alberto Faria
This series introduces a static analyzer for QEMU. It consists of a single static-analyzer.py script that relies on libclang's Python bindings, and provides a common framework on which arbitrary static analysis checks can be developed and run against QEMU's code base. Summary of the series: -