You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/docs/analyzer/user-docs/CommandLineUsage.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Command Line Usage: scan-build and CodeChecker
2
2
==============================================
3
3
4
-
This document provides guidelines for running Clang Static Analyzer from the command line on whole projects.
4
+
This document provides guidelines for running the static analyzer from the command line on whole projects.
5
5
CodeChecker and scan-build are two CLI tools for using CSA on multiple files (tranlation units).
6
6
Both provide a way of driving the analyzer, detecting compilation flags, and generating reports.
7
7
CodeChecker is more actively maintained, provides heuristics for working with multiple versions of popular compilers and it also comes with a web-based GUI for viewing, filtering, categorizing and suppressing the results.
@@ -10,9 +10,9 @@ Therefore CodeChecker is recommended in case you need any of the above features
10
10
Comparison of CodeChecker and scan-build
11
11
----------------------------------------
12
12
13
-
Static Analyzer is by design a GUI tool originally intended to be consumed by the XCode IDE.
13
+
The static analyzer is by design a GUI tool originally intended to be consumed by the XCode IDE.
14
14
Its purpose is to find buggy execution paths in the program, and such paths are very hard to comprehend by looking at a non-interactive standard output.
15
-
It is possible, however, to invoke the Static Analyzer from the command line in order to obtain analysis results, and then later view them interactively in a graphical interface.
15
+
It is possible, however, to invoke the static analyzer from the command line in order to obtain analysis results, and then later view them interactively in a graphical interface.
16
16
The following tools are used commonly to run the analyzer from the command line.
17
17
Both tools are wrapper scripts to drive the analysis and the underlying invocations of the Clang compiler:
18
18
@@ -21,8 +21,8 @@ Both tools are wrapper scripts to drive the analysis and the underlying invocati
21
21
- Works on all major platforms (Windows, Linux, macOS) and is available as a package in many Linux distributions.
22
22
- Does not include support for cross-translation-unit analysis.
23
23
24
-
2. CodeChecker_ is a driver and web server that runs the Static Analyzer on your projects on demand and maintains a database of issues.
25
-
- Perfect for managing large amounts of Static Analyzer warnings in a collaborative environment.
24
+
2. CodeChecker_ is a driver and web server that runs the static analyzer on your projects on demand and maintains a database of issues.
25
+
- Perfect for managing large amounts of thee static analyzer warnings in a collaborative environment.
26
26
- Generally much more feature-rich than scan-build.
27
27
- Supports incremental analysis: Results can be stored in a database, subsequent analysis runs can be compared to list the newly added defects.
28
28
- :doc:`CrossTranslationUnit` is supported fully on Linux via CodeChecker.
@@ -162,7 +162,7 @@ Conceptually Xcode projects for iPhone applications are nearly the same as their
162
162
Recommendation: use "Build and Analyze"
163
163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164
164
165
-
The absolute easiest way to analyze iPhone projects is to use the `Analyze feature in Xcode <https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Analyze.html#//apple_ref/doc/uid/TP40009975-CH4-SW1>`_ (which is based on the Clang Static Analyzer). There a user can analyze their project right from a menu without most of the setup described later.
165
+
The absolute easiest way to analyze iPhone projects is to use the `Analyze feature in Xcode <https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Analyze.html#//apple_ref/doc/uid/TP40009975-CH4-SW1>`_ (which is based on the static analyzer). There a user can analyze their project right from a menu without most of the setup described later.
166
166
167
167
`Instructions are available <../xcode.html>`_ on this website on how to use open source builds of the analyzer as a replacement for the one bundled with Xcode.
Copy file name to clipboardExpand all lines: clang/docs/analyzer/user-docs/UsingWithXCode.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Running the analyzer within Xcode
4
4
.. contents::
5
5
:local:
6
6
7
-
Since Xcode 3.2, users have been able to run the Clang Static Analyzer `directly within Xcode <https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Analyze.html#//apple_ref/doc/uid/TP40009975-CH4-SW1>`_.
7
+
Since Xcode 3.2, users have been able to run the static analyzer `directly within Xcode <https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Analyze.html#//apple_ref/doc/uid/TP40009975-CH4-SW1>`_.
8
8
9
9
It integrates directly with the Xcode build system and presents analysis results directly within Xcode's editor.
0 commit comments