diff options
Diffstat (limited to 'www/OpenProjects.html')
-rw-r--r-- | www/OpenProjects.html | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/www/OpenProjects.html b/www/OpenProjects.html index 69b398457fb1..4ed6614e360e 100644 --- a/www/OpenProjects.html +++ b/www/OpenProjects.html @@ -24,15 +24,9 @@ verify that one of these isn't already completed. :)</p> <li><b>Compile your favorite C/ObjC project with Clang</b>: Clang's type-checking and code generation is very close to complete (but not bug free!) for C and Objective-C. We appreciate all reports of code that is rejected or miscompiled by the front-end. If you notice invalid code that is not rejected, or poor diagnostics when code is rejected, that is also very important to us. For make-based projects, -the <a href="get_started.html#ccc"><code>ccc</code></a> driver works as a drop-in replacement for GCC.</li> +the <a href="get_started.html#driver"><code>clang</code></a> driver works as a drop-in replacement for GCC.</li> -<li><b>Overflow detection</b>: an interesting project would be to add a -ftrapv -compilation mode that causes -emit-llvm to generate overflow tests for all -signed integer arithmetic operators, and call abort if they overflow. Overflow -is undefined in C and hard for people to reason about. LLVM IR also has -intrinsics for generating arithmetic with overflow checks directly.</li> - -<li><b>Undefined behavior checking</b>: similar to adding -ftrapv, codegen could +<li><b>Undefined behavior checking</b>: CodeGen could insert runtime checks for all sorts of different undefined behaviors, from reading uninitialized variables, buffer overflows, and many other things. This checking would be expensive, but the optimizers could eliminate many of the @@ -58,7 +52,7 @@ Clang is built as a set of libraries, which means that it is possible to implement capabilities similar to other source language tools, improving them in various ways. Two examples are <a href="http://distcc.samba.org/">distcc</a> and the <a href="http://delta.tigris.org/">delta testcase reduction tool</a>. -The former can be improved to scale better and be more efficient. The later +The former can be improved to scale better and be more efficient. The latter could also be faster and more efficient at reducing C-family programs if built on the clang preprocessor.</li> @@ -86,14 +80,11 @@ improve the quality of clang by self-testing. Some examples: <li><b>Continue work on C++ support</b>: Implementing all of C++ is a very big job, but there are lots of little pieces that can be picked off and implemented. Here are some small- to mid-sized C++ implementation projects: <ul> - <li>Using declarations: These are completely unsupported at the moment.</li> - <li>Type-checking for the conditional operator (? :): this currently follows C semantics, not C++ semantics.</li> <li>Type-checking for explicit conversions: currently follows C semantics, not C++ semantics.</li> - <li>Type-checking for copy assignment: Clang parses overloaded copy-assignment operators, but they aren't used as part of assignment syntax ("a = b").</li> <li>Qualified member references: C++ supports qualified member references such as <code>x->Base::foo</code>, but Clang has no parsing or semantic analysis for them.</li> - <li>Virtual functions: Clang parses <code>virtual</code> and attaches it to the AST. However, it does not determine whether a given function overrides a virtual function in a base class.</li> <li>Implicit definitions of special member functions: Clang implicitly declares the various special member functions (default constructor, copy constructor, copy assignment operator, destructor) when necessary, but is not yet able to provide definitions for these functions.</li> <li>Parsing and AST representations of friend classes and functions</li> + <li>Explicit calls to destructors and pseudo-destructor expressions (<code>x.~X()</code>).</li> <li>AST representation for implicit C++ conversions: implicit conversions that involve non-trivial operations (e.g., invoking a user-defined conversion function, performing a base-to-derived or derived-to-base conversion) need explicit representation in Clang's AST.</li> <li>Improved diagnostics for overload resolution failures: after an overload resolution failure, we currently print out the overload resolution candidates. We should also print out the reason that each candidate failed, e.g., "too few arguments", "too many arguments", "cannot initialize parameter with an lvalue of type 'foo'", etc.</li> </ul> |