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
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,18 +16,19 @@ It is possible, however, to invoke the static analyzer from the command line in
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
19
-
1. scan-build_ is an old and simple command line tool that emits static analyzer warnings as HTML files while compiling your project. You can view the analysis results in your web browser.
19
+
1. scan-build_ is an old and simple command line tool that emits static analyzer warnings as HTML files while compiling your project. You can view the analysis results in your web browser; the utility script ``scan-view`` can provide a trivial HTTP server that servers these result files.
20
+
- Is available as a part of the LLVM project (together with ``scan-view``).
20
21
- Useful for individual developers who simply want to view static analysis results at their desk, or in a very simple collaborative environment.
21
22
- Works on all major platforms (Windows, Linux, macOS) and is available as a package in many Linux distributions.
22
23
- Does not include support for cross-translation-unit analysis.
23
24
24
25
2. CodeChecker_ is a driver and web server that runs the static analyzer on your projects on demand and maintains a database of issues.
26
+
- Open source, but out-of-tree, i.e. not part of the LLVM project.
25
27
- Perfect for managing large amounts of thee static analyzer warnings in a collaborative environment.
26
28
- Generally much more feature-rich than scan-build.
27
29
- Supports incremental analysis: Results can be stored in a database, subsequent analysis runs can be compared to list the newly added defects.
28
30
- :doc:`CrossTranslationUnit` is supported fully on Linux via CodeChecker.
29
-
- Can run clang-tidy checkers too.
30
-
- Open source, but out-of-tree, i.e. not part of the LLVM project.
31
+
- Can also run clang-tidy checks and various other analysis tools.
0 commit comments