Project

General

Profile

Actions

Feature #966

closed

scan-build support in the buildbot

Added by Victor Julien about 11 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Clang's scan-build is a very useful code analyzer. It outputs to html, but it also prints to the screen.

e.g.

util-radix-tree.c:733:42: warning: Call to 'malloc' has an allocation size of 0 bytes
            if ( (inter_node->netmasks = SCMalloc((node->netmask_cnt - i) *
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util-mem.h:166:14: note: expanded from:
    ptrmem = malloc((a)); \
             ^      ~~~
1 warning generated.

Think it would be good to make sure we are scan-build clean and then make it part of the prscript slave.

Actions #1

Updated by Eric Leblond about 6 years ago

  • Assignee changed from Eric Leblond to OISF Dev
Actions #2

Updated by Philippe Antoine about 3 years ago

  • Target version changed from BuildBot to QA
Actions #3

Updated by Victor Julien almost 3 years ago

  • Status changed from Assigned to Closed

scan-build is being run as part of private QA

Actions

Also available in: Atom PDF