Configuring ScanBuild

Basic configuration

The configuration for ScanBuild can be added to the SERVER.txt to apply for all projects.

Syntax

'TOOLS' => {
  'ScanBuild' => {
    'BUILDCMD' => [list of build command arguments],
  }
}

ScanBuild needs to know how to build the project. Note that an actual build is performed and the working directory is modified. The build command line must be specified as a list of command line arguments (one element per argument). E.g., to force a rebuild with (GNU) make one might use make -B. To TICS, this must be specified as ['make', '-B'].

Example

'TOOLS' => {
  'ScanBuild' => {
    'BUILDCMD' => ['make', '-B'],
  }
}