From be6e5162f90ad684c145ff06e2bc95dccf9efd37 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 11 Jun 2008 05:25:12 +0000 Subject: [PATCH] Minor tweaks/grammar/formatting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52193 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/StaticAnalysis.html | 74 +++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 22 deletions(-) diff --git a/www/StaticAnalysis.html b/www/StaticAnalysis.html index 50f8b74847..8fbc37f686 100644 --- a/www/StaticAnalysis.html +++ b/www/StaticAnalysis.html @@ -25,10 +25,12 @@

Information on using the Static Analyzer ("LLVM Checker")

-

This documents provides some notes on using the LLVM/clang static analyzer -to find bugs in C and Objective-C programs. Please note that this tool is very -earlier in development, and there are many planned enhancements to improve both -the analysis precision of the tool and the number of bugs it will find.

+

This documents provides some notes on using the LLVM/clang static analyzer to +find bugs in C and Objective-C programs.

+ +

Please note that this tool is very early in development, and there are +many planned enhancements to improve both the precision and scope of its +analysis algorithms as well as the kinds bugs it will find.

This document is arranged into the following sections:

@@ -42,17 +44,28 @@ the analysis precision of the tool and the number of bugs it will find.

Obtaining the Analyzer

-

Semi-regular builds of the analyzer on Mac OS X (10.5) are available Using the analyzer involves executing scan-build (see Basic Usage). scan-build will first look for a +clang executable in the same directory as scan-build, and then +search your path.

+ +

If one is using the analyzer directly from the Clang sources, it suffices to +just directly execute scan-build in the utils directory. No +other special installation is needed.

+ +

Packaged Builds (currently Mac-Only)

+ +

Semi-regular builds of the analyzer on Mac OS X (10.5) are available here. Packaged builds for other platforms may eventually be provided, but as the tool is in its early -stages we are not actively promoting releases yet.

+stages we are not actively promoting releases yet. If you wish to help +contribute regular builds of the analyzer on other platforms, please email the +Clang Developers' +mailing list.

-

Packaged builds consist of a few files from the Clang source tree, meaning -that anyone who can build Clang can use the static analyzer. The packaged -builds of the analyzer expand to the following files that are taken from the -utils and Driver subdirectories in the Clang tree:

+

Packaged builds of the analyzer expand to the following files:

- +
@@ -60,12 +73,16 @@ builds of the analyzer expand to the following files that are taken from the
FilePurpose
scan-buildScript for running the analyzer over a project build. This is the only file you care about.
ccc-analyzerGCC interceptor (called by scan-build)
sorttable.jsJavaScript used for displaying error reports
-

Using the analyzer involves executing scan-build (see Basic Usage). scan-build will first look for a -clang executable in the same directory as scan-build, and then -search your path. If one is using the analyzer directly from the Clang sources, -it suffices to just directly execute scan-build in the utils -directory. No other special installation is needed.

+

Other Platforms (Building the Analyzer from Source)

+ +

Packaged builds simply consist of a few files from the Clang source tree, +meaning that anyone who can build Clang can use the static analyzer. +Please see the Getting Started page for more +details on downloading and compiling Clang.

+ +

All files used by the analyzer (and included in packaged builds; see above) other than a compiled clang executable +are found in the utils subdirectory in the Clang tree.

Basic Usage

@@ -125,6 +142,10 @@ options prefix the build command. For example:

+ + + xcodebuild.

This is a convenience option; one can specify this behavior directly using build options.

- @@ -153,6 +174,9 @@ arguments:

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 @@ -249,7 +273,13 @@ report bugs of this kind).

Filing Bugs

We encourage users to file bug reports for any problems that they encounter. -Apple-internal users should file bugs in Radar against the llvm - clang -component. External-Apple users should file bugs in LLVM's Bugzilla against -clang. + +

Outside Apple: Please file bugs (against +Clang) in LLVM's Bugzilla database.

+ +

Apple-internal: Please file bugs in Radar against the llvm - clang +component.

+ + + \ No newline at end of file -- 2.40.0
OptionDescription
-aThe 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.
-oTarget 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 @@ -137,7 +158,7 @@ reports.
-vVerbose output from scan-build and the analyzer. A second +
-vVerbose output from scan-build and the analyzer. A second and third "-v" increases verbosity, and is useful for filing bug reports against the analyzer.
-VView analysis results in a web browser when the build command completes.