summaryrefslogtreecommitdiff
path: root/clang/www/analyzer/dev_cxx.html
blob: 39dbf7b4af8fd544b703500c39bdfe5c9da3d124 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
          "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <title>Analyzer Development: C++ Support</title>
  <link type="text/css" rel="stylesheet" href="menu.css">
  <link type="text/css" rel="stylesheet" href="content.css">
  <script type="text/javascript" src="scripts/menu.js"></script>  
</head>
<body>

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

<h1>C++ Support</h1>

<p>The Clang frontend
now <a href="http://clang.llvm.org/cxx_status.html">supports the
majority of C++</a>.  Support in the frontend for C++ language
features, however, does not automatically translate into support for
those features in the static analyzer.  Language features need to be
specifically modeled in the static analyzer so their semantics can be
properly analyzed.  Support for analyzing C++ and Objective-C++ files
is currently extremely limited, and we are only encouraging those who
are interested in contributing to the development of the analyzer to
try this functionality out at this time.</p>

<p>Listed here are a set of open tasks that are prerequisites for
decent analysis of C++.  This list is also not complete; new tasks
will be added as deemed necessary.</p>

<ul>
  <li>Control-Flow Graph Enhancements:
  <ul>
    <li>Model C++ destructors</li>
    <li>Model C++ initializers (in constructors)</li>
  </ul>
  </li>
  <li>Path-Sensitive Analysis Engine (GRExprEngine):
  <ul>
    <li>Model C++ casts</li>
    <li>Model C++ constructors</li>
    <li>Model C++ destructors</li>
    <li>Model <tt>new</tt> and <tt>delete</tt></li>
  </ul>
  </li>
</ul>

</div>
</div>
</body>
</html>