Opened 7 years ago

Last modified 4 years ago

#2706 new task

describe how to run scan-build (clang static analyzer)

Reported by: jinmei Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: documentation Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 2 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

It doesn't seem to be a trivial task. We should show workable
instructions in wiki. See also #2665.

Subtickets

Change History (6)

comment:1 Changed 7 years ago by muks

We could add a make target when clang-analyzer is found.

comment:2 Changed 6 years ago by jreed

My automated steps are like:

scan-build --keep-going -v -o ${WORKDIR}/build/scan-build make

if [ -d "${WORKDIR}/build/scan-build" ]; then
  # make it error if there are bug reports to examine
  exit 1
fi

If using a make target, do we want to keep the same --keep-going and -v options?

The make target would then spawn make.

Do we want the make target to report if there are bug reports to examine?

I don't think I want to make configure detect this scan-build, but just have a make target.

I started some simple docs about it at http://bind10.isc.org/wiki/ClangStaticAnalyzer
--- feel free to improve it.

comment:3 Changed 6 years ago by shane

  • Milestone changed from New Tasks to Next-Sprint-Proposed

comment:4 Changed 6 years ago by tomek

  • Milestone changed from Next-Sprint-Proposed to Common Outstanding Tasks

Milestone Next-Sprint-Proposed deleted

comment:5 Changed 4 years ago by tomek

  • Milestone changed from Common Outstanding Tasks to DHCP Outstanding Tasks

comment:6 Changed 4 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.