git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2010-02-19 08:24:37 +00:00
Родитель 7d539a4fb6
Коммит 8c0b9646f5
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -105,7 +105,7 @@ specify for static analysis. Within this model it provides you two basic modes:
<h4>Examples</h4> <h4>Examples</h4>
<p>Telling Xcode to use checker-235 for <i>Build and Analyze</i>:</p> <p><b>Example 1</b>: Telling Xcode to use checker-235 for <i>Build and Analyze</i>:</p>
<pre class="code_example"> <pre class="code_example">
$ pwd $ pwd
@ -114,13 +114,17 @@ $ tar xjf checker-235.tar.bz2
$ checker-235/set-xcode-analyzer --use-checker-build=/tmp/checker-235 $ checker-235/set-xcode-analyzer --use-checker-build=/tmp/checker-235
</pre> </pre>
<p>Telling Xcode to use a very specific version of <tt>clang</tt>:</p> <p>Note that you typically won't install an analyzer build in <tt>/tmp</tt>, but
the point of this example is that <tt>set-xcode-analyzer</tt> just wants a full
path to an untarred analyzer build.</p>
<p><b>Example 2</b>: Telling Xcode to use a very specific version of <tt>clang</tt>:</p>
<pre class="code_example"> <pre class="code_example">
$ set-xcode-analyzer --use-checker-build=~/mycrazyclangbuild/bin/clang $ set-xcode-analyzer --use-checker-build=~/mycrazyclangbuild/bin/clang
</pre> </pre>
<p>Resetting Xcode to its default behavior:</p> <p><b>Example 3</b>: Resetting Xcode to its default behavior:</p>
<pre class="code_example"> <pre class="code_example">
$ set-xcode-analyzer -use-xcode-clang $ set-xcode-analyzer -use-xcode-clang