6969
7070< h1 > Clang Static Analyzer</ h1 >
7171
72- < p > The Clang Static Analyzer is a source code analysis tool that finds bugs in
73- C, C++, and Objective-C programs.</ p >
74-
75- < p > Currently it can be run either from the < a href ="command-line.html "> command
76- line</ a > or if you use macOS then < a href ="xcode.html "> within Xcode</ a > . When
77- invoked from the command line, it is intended to be run in tandem with a build
78- of a codebase.</ p >
79-
80- < p > The analyzer is 100% open source and is part of the < a
81- href ="https://clang.llvm.org "> Clang</ a > project. Like the rest of Clang, the
82- analyzer is implemented as a C++ library that can be used by other tools and
83- applications.</ p >
84-
85- < h2 > Download</ h2 >
86-
87- < div style ="padding:0px; font-size: 90% ">
88- < b class ="spiffy ">
89- < b class ="spiffy1 "> < b > </ b > </ b >
90- < b class ="spiffy2 "> < b > </ b > </ b >
91- < b class ="spiffy3 "> </ b >
92- < b class ="spiffy4 "> </ b >
93- < b class ="spiffy5 "> </ b > </ b >
94- < div class ="spiffyfg ">
95- < div style ="padding:15px ">
96- < h3 style ="margin:0px;padding:0px "> Mac OS X</ h3 >
97- < ul >
98- < li > Latest build (10.8+):< br >
99- < b > < a href ="downloads/checker-279.tar.bz2 "> checker-279.tar.bz2</ a > </ b > (built November 14, 2016)
100- </ li >
101- < li > < a href ="/release_notes.html "> Release notes</ a > </ li >
102- < li > This build can be used both from the command line and from within Xcode</ li >
103- < li > < a href ="/installation.html "> Installation</ a > and < a href ="/scan-build.html "> usage</ a > </ li >
104- </ ul >
105- </ div >
106- </ div >
107- < b class ="spiffy ">
108- < b class ="spiffy5 "> </ b >
109- < b class ="spiffy4 "> </ b >
110- < b class ="spiffy3 "> </ b >
111- < b class ="spiffy2 "> < b > </ b > </ b >
112- < b class ="spiffy1 "> < b > </ b > </ b > </ b >
113- </ div >
72+ <!-- Removed the Downloads section -->
11473
11574< div style ="padding:0; margin-top:10px; font-size: 90% ">
11675 < b class ="spiffy ">
@@ -121,10 +80,25 @@ <h3 style="margin:0px;padding:0px">Mac OS X</h3>
12180 < b class ="spiffy5 "> </ b > </ b >
12281 < div class ="spiffyfg ">
12382 < div style ="padding:15px ">
124- < h3 style ="margin:0px;padding:0px "> Other Platforms</ h3 >
125- < p > For other platforms, please follow the instructions for < a
126- href ="/installation#OtherPlatforms "> building the analyzer</ a > from
127- source code.< p >
83+ < p > The static analyzer is part of Clang. Please refer to the
84+ < a href ="https://releases.llvm.org/download.html "> LLVM
85+ releases page</ a > for further instructions.</ p >
86+
87+ < p > The official LLVM releases also include < a href ="scan-build.html "> scan-build</ a > .
88+ If you're installing Clang from a different source, such as
89+ a Linux package repository, then scan-build may be packaged
90+ separately as an individual package, or as part of
91+ a "clang tools" package.</ p >
92+
93+ < p > If your IDE is using Clang, it may natively integrate the static analyzer.
94+ On macOS, the easiest way to use the static analyzer is to invoke it
95+ < a href ="https://clang.llvm.org/docs/analyzer/user-docs/UsingWithXCode.html "> directly
96+ from Xcode</ a > .</ p >
97+
98+ < p > Additionally, if you're using < a href ="https://clang.llvm.org/extra/clang-tidy/ "> clang-tidy</ a > ,
99+ you can naturally make the static analyzer run alongside clang-tidy
100+ by enabling the < a href ="https://clang.llvm.org/extra/clang-tidy/checks/list.html "> clang-analyzer</ a >
101+ checks.</ p >
128102 </ div >
129103 </ div >
130104 < b class ="spiffy ">
0 commit comments