[Cdash] Static Analysis
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Jul 22 13:10:38 UTC 2009
$ cd VTK/Common
$ cppcheck -a -f -q --xml .
<?xml version="1.0"?>
<results>
<error file="./Testing/Cxx/TestGarbageCollector.cxx" line="63"
id="memleakall" severity="all" msg="Memory leak:
vtkTestReferenceLoop::Other"/>
<error file="./vtkTypeTemplate.h" line="35" id="virtualDestructor"
severity="error" msg="Class vtkTypeTemplate which is inherited by
class vtkDenseArray does not have a virtual destructor"/>
<error file="./vtkArrayWeights.h" line="89" id="memleakall"
severity="all" msg="Memory leak: vtkArrayWeights::Storage"/>
<error file="./vtkDebugLeaks.h" line="82" id="memleakall"
severity="all" msg="Memory leak: vtkDebugLeaks::MemoryTable"/>
<error file="./vtkDebugLeaks.h" line="83" id="memleakall"
severity="all" msg="Memory leak: vtkDebugLeaks::CriticalSection"/>
<error file="./vtkInstantiator.h" line="101" id="memleakall"
severity="all" msg="Memory leak: vtkInstantiator::CreatorTable"/>
<error file="./vtkMath.cxx" line="759" id="memleakall" severity="all"
msg="Memory leak: b"/>
<error file="./vtkMath.cxx" line="759" id="memleakall" severity="all"
msg="Memory leak: z"/>
<error file="./vtkOutputWindow.h" line="86" id="memleakall"
severity="all" msg="Memory leak: vtkOutputWindow::Instance"/>
<error file="./vtkSocketCollection.cxx" line="78" id="memleak"
severity="error" msg="Memory leak: socket_indices"/>
<error file="./vtkSocketCollection.cxx" line="78" id="memleak"
severity="error" msg="Memory leak: sockets_to_select"/>
<error file="./vtkTimerLog.h" line="191" id="memleakall"
severity="all" msg="Memory leak: vtkTimerLog::TimerLog"/>
</results>
On Wed, Jul 22, 2009 at 3:00 PM, Julien Jomier<julien.jomier at kitware.com> wrote:
> I haven't seen it implemented, but if the output of cppcheck can be easily
> parsed (XML?), it should be doable.
>
> Julien
>
> Mathieu Malaterre wrote:
>>
>> Hi,
>>
>> Has anyone worked on integrating static tools checkers (such as
>> cppcheck) into the usual cdash process ?
>>
>> Thanks,
>
--
Mathieu
More information about the CDash
mailing list