From: Ted Kremenek
Here are a complete list of options:
+Here is a subset of useful options:
Option | Description |
-a | -The analysis to run. The default analysis is checker-cfref. Valid options are: checker-cfref, fsyntax-only. - These translate into options passed down to the clang executable, and currently this option is mainly used for debugging. |
-o | Target directory for HTML report files. Subdirectories will be created as needed to represent separate "runs" of the analyzer. If this option is not specified, a directory is created in /tmp to store the reports. |
-h | Display scan-build options. |
-h | Display all scan-build options. |
-k | Add a "keep on going" option to the
specified build command. This option currently supports make and @@ -158,26 +154,6 @@ reports. |
-V | View analysis results in a web browser when the build command completes. |
These options can also be viewed by running scan-build with no -arguments:
- -- $ scan-build - - USAGE: scan-build [options] <build command> [build options] - - OPTIONS: - - -a - The analysis to run. The default is 'checker-cfref'. - Valid options are: 'checker-cfref', 'fsyntax-only' - - -o - Target directory for HTML report files. Subdirectories - will be created as needed to represent separate "runs" of - the analyzer. If this option is not specified, a directory - is created in /tmp to store the reports. - ... --