Skip to content

[analyzer][NFC][docs] Add CodeChecker to the command line tools #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions clang/www/analyzer/command-line.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Running the analyzer from the command line</title>
<link type="text/css" rel="stylesheet" href="content.css">
<link type="text/css" rel="stylesheet" href="menu.css">
<script type="text/javascript" src="scripts/menu.js"></script>
</head>
<body>

<div id="page">
<!--#include virtual="menu.html.incl"-->
<div id="content">

<h1>Running the analyzer from the command line</h1>

<p>The following tools are supported to run the analyzer from the command line:
<ul>
<li><a href="https://github.com/Ericsson/codechecker">CodeChecker</a> (preferred on Linux)</li>
<li><a href="scan-build.html">scan-build</a> (preferred on macOS)</li>
</ul>
</p>

<p>
Both tools are wrapper scripts to drive the analysis and the underlying invocations of the Clang compiler.
<a href="https://clang.llvm.org/docs/analyzer/user-docs/CrossTranslationUnit.html">Cross translation unit (CTU) analysis</a> is supported officially only via CodeChecker.
</p>

</div>
</div>
</body>
</html>
6 changes: 3 additions & 3 deletions clang/www/analyzer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ <h1>Clang Static Analyzer</h1>
<p>The Clang Static Analyzer is a source code analysis tool that finds bugs in
C, C++, and Objective-C programs.</p>

<p>Currently it can be run either as a <a href="scan-build.html">standalone
tool</a> or <a href="xcode.html">within Xcode</a>. The standalone tool is
invoked from the command line, and is intended to be run in tandem with a build
<p>Currently it can be run either from the <a href="command-line.html">command
line</a> or if you use macOS then <a href="xcode.html">within Xcode</a>. When
invoked from the command line, it is intended to be run in tandem with a build
of a codebase.</p>

<p>The analyzer is 100% open source and is part of the <a
Expand Down