Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
| 2 | "http://www.w3.org/TR/html4/strict.dtd">
|
| 3 | <html>
|
| 4 | <head>
|
| 5 | <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
Argyrios Kyrtzidis | 682f77b | 2008-07-02 13:44:11 +0000 | [diff] [blame^] | 6 | <title>Clang - C++ Support</title>
|
Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 7 | <link type="text/css" rel="stylesheet" href="menu.css" />
|
| 8 | <link type="text/css" rel="stylesheet" href="content.css" />
|
| 9 | <style type="text/css">
|
| 10 | </style>
|
| 11 | </head>
|
| 12 | <body>
|
| 13 |
|
| 14 | <!--#include virtual="menu.html.incl"-->
|
| 15 |
|
| 16 | <div id="content">
|
| 17 |
|
| 18 | <!--*************************************************************************-->
|
| 19 | <h1>C++ Support in Clang</h1>
|
| 20 | <!--*************************************************************************-->
|
| 21 |
|
| 22 | <p>
|
| 23 | This page tracks the status of C++ support in Clang.</p>
|
| 24 | <table width="689" border="1">
|
| 25 | <tr>
|
| 26 | <td width="150"><h3>Feature</h3></td>
|
| 27 | <td width="172"><h3>Example</h3></td>
|
| 28 | <td width="345"><h3>Status</h3></td>
|
| 29 | </tr>
|
| 30 | <tr>
|
| 31 | <td>C++ Keywords </td>
|
| 32 | <td>reinterpret_cast</td>
|
| 33 | <td>Full support.</td>
|
| 34 | </tr>
|
| 35 | <tr>
|
| 36 | <td>C++ References</td>
|
| 37 | <td>int &x = ...;</td>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 38 | <td>Parser and Sema support in, partial Codegen support.</td>
|
Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 39 | </tr>
|
| 40 | <tr>
|
| 41 | <td>C++ Default arguments </td>
|
| 42 | <td>void f(int x=0); </td>
|
| 43 | <td>Full support. </td>
|
| 44 | </tr>
|
| 45 | <tr>
|
| 46 | <td>C++ Namespaces</td>
|
| 47 | <td>namespace A {<br/>
|
| 48 | int x;<br/>
|
| 49 | }</td>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 50 | <td>Parser and Sema support in, no Codegen support.</td>
|
Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 51 | </tr>
|
| 52 | <tr>
|
| 53 | <td>C++ Class definitions</td>
|
| 54 | <td>class C {<br/>
|
| 55 | public:<br/>
|
| 56 | int getX() { return x; }<br/>
|
| 57 | private:<br/>
|
| 58 | int x;<br/>
|
| 59 | };</td>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 60 | <td>Partial Parser and Sema support, no Codegen support.</td>
|
Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 61 | </tr>
|
Gabor Greif | 7727cb2 | 2008-07-02 12:31:13 +0000 | [diff] [blame] | 62 | <tr>
|
| 63 | <td>Virtual functions</td>
|
| 64 | <td>class C {<br/>
|
| 65 | public:<br/>
|
| 66 | virtual int doFoo() = 0;<br/>
|
| 67 | };</td>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 68 | <td>Nonexistent.</td>
|
Gabor Greif | 7727cb2 | 2008-07-02 12:31:13 +0000 | [diff] [blame] | 69 | </tr>
|
| 70 | <tr>
|
| 71 | <td>Templates</td>
|
| 72 | <td>class C {<br/>
|
| 73 | public:<br/>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 74 | template <typename T> T as();<br/>
|
Gabor Greif | 7727cb2 | 2008-07-02 12:31:13 +0000 | [diff] [blame] | 75 | };</td>
|
Gabor Greif | 1323480 | 2008-07-02 12:34:47 +0000 | [diff] [blame] | 76 | <td>Nonexistent.</td>
|
Gabor Greif | 7727cb2 | 2008-07-02 12:31:13 +0000 | [diff] [blame] | 77 | </tr>
|
Argyrios Kyrtzidis | 84b7a80 | 2008-07-02 11:38:59 +0000 | [diff] [blame] | 78 | </table>
|
| 79 | </div>
|
| 80 | </body>
|
| 81 | </html>
|