@@ -72,45 +72,9 @@ <h1>Clang Static Analyzer</h1>
72
72
< p > The Clang Static Analyzer is a source code analysis tool that finds bugs in
73
73
C, C++, and Objective-C programs.</ p >
74
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 >
75
+ < p > The analyzer is 100% open source and is part of the < a href ="https://clang.llvm.org "> Clang</ a >
76
+ project. Like the rest of Clang, the analyzer is implemented as a C++ library
77
+ that can be used by other tools and applications.</ p >
114
78
115
79
< div style ="padding:0; margin-top:10px; font-size: 90% ">
116
80
< b class ="spiffy ">
@@ -121,10 +85,27 @@ <h3 style="margin:0px;padding:0px">Mac OS X</h3>
121
85
< b class ="spiffy5 "> </ b > </ b >
122
86
< div class ="spiffyfg ">
123
87
< 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 >
88
+
89
+ < p > To get started with the Clang Static Analyzer, visit the
90
+ < a href ="https://releases.llvm.org/download.html "> LLVM
91
+ releases page</ a > for download and installation instructions. The official
92
+ releases include both the analyzer and < a href ="scan-build.html "> scan-build</ a > ,
93
+ a command-line tool for running the analyzer on your codebase.</ p >
94
+
95
+ < p > If you're installing Clang from a different source, such as
96
+ a Linux package repository, then scan-build may be packaged
97
+ separately as an individual package, or as part of
98
+ a "clang tools" package.</ p >
99
+
100
+ < p > If your IDE is using Clang, it may natively integrate the static analyzer.
101
+ On macOS, the easiest way to use the static analyzer is to invoke it
102
+ < a href ="https://clang.llvm.org/docs/analyzer/user-docs/UsingWithXCode.html "> directly
103
+ from Xcode</ a > .</ p >
104
+
105
+ < p > Additionally, if you're using < a href ="https://clang.llvm.org/extra/clang-tidy/ "> clang-tidy</ a > ,
106
+ you can naturally make the static analyzer run alongside clang-tidy
107
+ by enabling the < a href ="https://clang.llvm.org/extra/clang-tidy/checks/list.html "> clang-analyzer</ a >
108
+ checks.</ p >
128
109
</ div >
129
110
</ div >
130
111
< b class ="spiffy ">
0 commit comments