From: Anton Yartsev Date: Fri, 28 Jun 2013 19:21:11 +0000 (+0000) Subject: + "For Windows Users" section X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd15907deb4e70f466ed28837b9a22f62c9db7cc;p=clang + "For Windows Users" section + description for --use-analyzer option + managed size of columns of the 'options' table git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185199 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/www/analyzer/content.css b/www/analyzer/content.css index 6f68fdb7d5..929d5200a3 100644 --- a/www/analyzer/content.css +++ b/www/analyzer/content.css @@ -54,7 +54,9 @@ table.options thead { text-align:left; border-top: 2px solid #cccccc; border-bottom: 2px solid #cccccc; - font-weight: bold; font-family: Verdana + font-weight: bold; font-family: Verdana; + table-layout: fixed; + width: 100% } table.options { border: 1px #cccccc solid } table.options { border-collapse: collapse; border-spacing: 0px } @@ -62,6 +64,7 @@ table.options { margin-left:0px; margin-top:20px; margin-bottom:20px } table.options td { border-bottom: 1px #cccccc dotted } table.options td { padding:5px; padding-left:8px; padding-right:8px } table.options td { text-align:left; font-size:9pt } +table.options col.option { width:207px } table.checkers { border: 1px #cccccc solid; diff --git a/www/analyzer/scan-build.html b/www/analyzer/scan-build.html index 710fa0f495..9c4070b060 100644 --- a/www/analyzer/scan-build.html +++ b/www/analyzer/scan-build.html @@ -57,6 +57,7 @@ aforementioned hack fails to work.

  • Getting Started @@ -122,6 +123,14 @@ files:

    This example causes the files t1.c and t2.c to be analyzed.

    +

    For Windows Users

    + +

    Windows users must have Perl installed to use scan-build. Currently scan-build +is known to work with the msys perl port.

    + +

    scan-build.bat script allows you to launch scan-build in the same way as it described in the Basic Usage section above. +All you need to be able to invoke scan-build from an arbitrary location is to add the path to scan-build to your PATH environment variable.

    +

    Other Options

    As mentioned above, extra options can be passed to scan-build. These @@ -135,6 +144,7 @@ options prefix the build command. For example:

    Here is a subset of useful options:

    +
    OptionDescription
    -oTarget directory for HTML report files. Subdirectories @@ -155,7 +165,13 @@ 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.
    +command completes. + +--use-analyzer Xcode
    or
    +--use-analyzer [path to clang]scan-build uses the +'clang' executable relative to itself for static analysis. One can override this +behavior with this option by using the 'clang' packaged with Xcode (on OS X) or +from the PATH.

    A complete list of options can be obtained by running scan-build with no arguments.