2011-11-28 15:16:19 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Clang 3.0 Release Notes</title>
|
|
|
|
<link type="text/css" rel="stylesheet" href="../menu.css" />
|
|
|
|
<link type="text/css" rel="stylesheet" href="../content.css" />
|
|
|
|
<style type="text/css">
|
|
|
|
td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<!--#include virtual="../menu.html.incl"-->
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
<h1>Clang 3.0 Release Notes</h1>
|
|
|
|
|
|
|
|
<img align=right src="http://llvm.org/img/DragonSmall.png"
|
|
|
|
width="136" height="136" alt="LLVM Dragon Logo">
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="#intro">Introduction</a></li>
|
|
|
|
<li><a href="#whatsnew">What's New in Clang 3.0?</a>
|
|
|
|
<ul>
|
|
|
|
<li><a href="#majorfeatures">Major New Features</a></li>
|
|
|
|
<li><a href="#cchanges">C Language Changes</a></li>
|
|
|
|
<li><a href="#cxxhanges">C++ Language Changes</a></li>
|
|
|
|
<li><a href="#objchanges">Objective-C Language Changes</a></li>
|
|
|
|
<li><a href="#apichanges">Internal API Changes</a></li>
|
|
|
|
</li>
|
|
|
|
<li><a href="#knownproblems">Known Problems</a></li>
|
|
|
|
<li><a href="#additionalinfo">Additional Information</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="doc_author">
|
|
|
|
<p>Written by the <a href="http://llvm.org/">LLVM Team</a></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<h1 style="color:red">These are in-progress notes for the upcoming LLVM 3.0
|
|
|
|
release.<br>
|
|
|
|
You may prefer the
|
|
|
|
<a href="http://llvm.org/releases/2.9/docs/ReleaseNotes.html">LLVM 2.9
|
|
|
|
Release Notes</a>.</h1>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<h2 id="intro">Introduction</h2>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
|
|
|
|
<p>This document contains the release notes for the Clang C/C++/Objective-C
|
|
|
|
frontend, part of the LLVM Compiler Infrastructure, release 3.0. Here we
|
|
|
|
describe the status of Clang in some detail, including major improvements from
|
|
|
|
the previous release and new feature work. For the general LLVM release notes,
|
|
|
|
see <a href ="http;//llvm.org/docs/ReleaseNotes.html">the LLVM
|
|
|
|
documentation</a>. All LLVM releases may be downloaded from the
|
|
|
|
<a href="http://llvm.org/releases/">LLVM releases web site</a>.</p>
|
|
|
|
|
|
|
|
<p>For more information about Clang or LLVM, including information about the
|
|
|
|
latest release, please check out the main please see the
|
|
|
|
<a href="http://clang.llvm.org">Clang Web Site</a> or the
|
|
|
|
<a href="http://llvm.org">LLVM Web Site</a>.
|
|
|
|
|
|
|
|
<p>Note that if you are reading this file from a Subversion checkout or the main
|
|
|
|
Clang web page, this document applies to the <i>next</i> release, not the
|
|
|
|
current one. To see the release notes for a specific release, please see the
|
|
|
|
<a href="http://llvm.org/releases/">releases page</a>.</p>
|
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<h2 id="whatsnew">What's New in Clang 3.0?</h2>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
|
|
|
|
<p>Some of the major new features and improvements to Clang are listed here.
|
|
|
|
Generic improvements to Clang as a whole or two its underlying infrastructure
|
|
|
|
are described first, followed by language-specific sections with improvements to
|
|
|
|
Clang's support for those languages.</p>
|
|
|
|
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
<h3 id="majorfeatures">Major New Features</h3>
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
|
2011-11-28 16:41:06 +08:00
|
|
|
<h4 id="notes">Unorganized Notes</h4>
|
|
|
|
<p>These are completely random notes as I'm organizing my thoughts and reviewing
|
|
|
|
the history. Anything still here needs to be distilled and turned into proper
|
|
|
|
prose in a section of its own. When doing that, delete the notes.</p>
|
|
|
|
<ul>
|
|
|
|
<li>Make analyzer (especially as used w/ warnings in Clang) much faster</li>
|
|
|
|
<li>OpenCL support -- need details from Tanya and Peter -- separate language
|
|
|
|
section?</li>
|
|
|
|
<li>Building Clang on windows -- mingw, 32 and 64 bit, native windows builds,
|
|
|
|
cygwin. get chapuni to flesh out details.</li>
|
2011-11-28 17:43:30 +08:00
|
|
|
<li>Compiling C/C++ w/ MinGW (32/64) and Cygwin on Windows -- chapuni</li>
|
|
|
|
<li>C++ -- Parsing and AST support for Windows Structured Exception
|
|
|
|
Handling.</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
<li>C++11 -- noexcept (Sebastian Redl)</li>
|
|
|
|
<li>Uninitialized values Clang warning rewrite -- more accurate, faster, able
|
|
|
|
to differentiate between the possibility of an uninitialized use and the
|
|
|
|
certainty of an uninitialized use.</li>
|
|
|
|
<li>Enhancements to PPCallbacks
|
|
|
|
<ul>
|
2011-11-28 20:24:23 +08:00
|
|
|
<li>exact include paths</li>
|
|
|
|
<li>source range for macro expansions</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Support for language specific address spaces</li>
|
2011-11-28 17:43:30 +08:00
|
|
|
<li>Support for compiling on NetBSD systems -- Joerg Sonnenberger to fill
|
|
|
|
out</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
<li>Support for '--sysroot' based cross-compilation</li>
|
|
|
|
<li>Crash recovery handling for libclang clients -- Ted</li>
|
|
|
|
<li>Driver support for automatic preparation of reproduction steps for
|
|
|
|
compiler crashes -- Chad</li>
|
|
|
|
<li>OS Availability attribute -- r128127</li>
|
|
|
|
<li>GNU ObjectiveC Runtime support -- David Chisnall</li>
|
|
|
|
<li>C++11 -- override</li>
|
|
|
|
<li>Diagnostic improvements bucket?
|
|
|
|
<ul>
|
|
|
|
<li>Emitting fewer include stacks</li>
|
2011-11-28 17:43:30 +08:00
|
|
|
<li>Significantly better recovery when encountering misspelled type names
|
|
|
|
in a declaration context. r130082</li>
|
2011-11-28 19:27:33 +08:00
|
|
|
<li>Expanded typo correction, most especially namespace-aware typo
|
|
|
|
correction in C++</li>
|
2011-11-28 20:24:21 +08:00
|
|
|
<li>Significantly more rich diagnostics w.r.t. macro expansion backtraces,
|
|
|
|
especially when macro arguments are involved.</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
2011-11-29 01:50:36 +08:00
|
|
|
<li>libclang improvements bucket
|
2011-11-28 20:24:23 +08:00
|
|
|
<ul>
|
|
|
|
<li>Better Python Bindings</li>
|
|
|
|
<li>More AST coverage</li>
|
|
|
|
<li>Improved cursor support within macros, especially function-style macro
|
|
|
|
arguments.</li>
|
|
|
|
<li>Improved code completion surrounding macros, macro arguments, and
|
|
|
|
token pasting.</li>
|
2011-11-29 01:50:36 +08:00
|
|
|
<li>Improved code completion for in-class member functions.</li>
|
2011-11-28 20:24:23 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
<li>C++ -- supported in the static analyzer: methods, new, constructors,
|
|
|
|
destructors, etc.</li>
|
2011-11-28 17:43:30 +08:00
|
|
|
<li>Improved AST support for partially constructed nodes and incomplete
|
|
|
|
information for LLDB and other clients which dynamically build AST nodes.</li>
|
|
|
|
<li>Largely complete MSVC-compatible parsing mode -- fpichet</li>
|
|
|
|
<li>C1X -- static asserts and generic selections</li>
|
|
|
|
<li>C++11 -- alias declarations -- zygoloid</li>
|
|
|
|
<li>C++11 -- range-based-for loops -- zygoloid</li>
|
2011-11-28 18:57:14 +08:00
|
|
|
<li>C++11 -- nullptr -- zygoloid</li>
|
2011-11-28 19:27:33 +08:00
|
|
|
<li>C++11 -- in-class init -- zygoloid</li>
|
2011-11-28 20:24:23 +08:00
|
|
|
<li>C++11 -- raw string literals -- zygoloid</li>
|
2011-11-29 01:50:36 +08:00
|
|
|
<li>C++11 -- delegating ctors -- zygoloid/scshunt</li>
|
2011-11-28 17:43:30 +08:00
|
|
|
<li>Memory reduction -- initializers, macro expansions, source locations,
|
|
|
|
etc.</li>
|
|
|
|
<li>Full set of type traits, sufficient to support C++11 standard libraries;
|
|
|
|
also expression traits.</li>
|
2011-11-28 18:57:14 +08:00
|
|
|
<li>CFI-based debug info -- nlewycky/espindola details</li>
|
2011-11-28 19:27:33 +08:00
|
|
|
<li>ObjC ARC -- get a blurb from rjmccall</li>
|
2011-11-29 01:51:39 +08:00
|
|
|
<li>ObjC related result type/instancetype</li>
|
2011-11-28 20:24:21 +08:00
|
|
|
<li>API -- The term "instantiation" w.r.t. macros in APIs has been completely
|
|
|
|
replaced by the term "expansion".</li>
|
2011-11-28 20:24:23 +08:00
|
|
|
<li>Thread Safety attributes and correctness analysis added to Clang.</li>
|
And that completes my sweep through commits for things that might be
worth noting in the release notes. These remain raw notes. I'll be
re-writing them into nice prose first thing tomorrow, with help from
others. A couple of notes for any reading the commits:
If you don't see something that should be mentioned, feel free to add
a note (or even a nicely written section) about it! I haven't really
done the static analyzer justice here as I don't really know what the
significant changes are other than mile-high stuff like watching it grow
C++ support and a more robust CFG. I also worry I've missed important
stuff in the Objective-C world.
If you see something that isn't worth mentioning, just delete it. I know
there are several things like this. I plan to prune the list down as
I flesh things out.
If you're name or email is on a bullet, I'll likely be sending you an
email asking for any input on that subject. For many of these I can fill
in something generic, and I'll just want you to give it a once-over.
However, if you have time, feel free to just write the blurb yourself
and drop it in, or drop it in an email to me.
Finally, *WOW* has a lot happened in Clang... I shouldn't have dreaded
(and put off) this so much, it was kind of awesome to go back and watch
the evolution. Anyways, these should be in a reasonable draft state
early tomorrow.
llvm-svn: 145247
2011-11-28 21:02:29 +08:00
|
|
|
<li>API -- Many opaque typedefs in Sema around AST nodes are gone.</li>
|
|
|
|
<li>NRVO for blocks.</li>
|
|
|
|
<li>Major improvements to the interactions between serializing and
|
|
|
|
deserializing the AST and the preprocessor -- argiris</li>
|
|
|
|
<li>Major driver and system compatibility changes:
|
|
|
|
<ul>
|
|
|
|
<li>Correct support for many more hardware architecture pre-defined macros
|
|
|
|
(e.g., __i686__).</li>
|
|
|
|
<li>Much more robust detection of library and header search paths on Linux
|
|
|
|
distributions.</li>
|
|
|
|
<li>Partial support for sysroot based cross compiling on Linux (like)
|
|
|
|
systems.</li>
|
|
|
|
<li>Improved support for locating and using libcxx, especially on
|
|
|
|
Darwin.</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>Initial steps of CUDA support -- Peter</li>
|
|
|
|
<li>Atomic builtins and C1X specifiers using the new LLVM atomic instructions
|
|
|
|
and memory model -- efriedma, jyasskin</li>
|
2011-11-28 16:41:06 +08:00
|
|
|
</ul>
|
|
|
|
|
2011-11-28 15:16:19 +08:00
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
<h3 id="cchanges">C Language Changes in Clang</h3>
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
<h3 id="cxxchanges">C++ Language Changes in Clang</h3>
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
<h3 id="objcchanges">Objective-C Language Changes in Clang</h3>
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
<h3 id="apichanges">Internal API Changes</h3>
|
|
|
|
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
|
|
|
|
|
2011-11-29 02:55:47 +08:00
|
|
|
These are major API changes that have happened since the 2.9 release of Clang.
|
|
|
|
If upgrading an external codebase that uses Clang as a library, this section
|
|
|
|
should help get you past the largest hurdles of upgrading.
|
|
|
|
|
|
|
|
<h4 id="diagnosticrename">Diagnostic class names were shuffled</h4>
|
|
|
|
<ul>
|
|
|
|
<li><code>Diagnostic</code> became <code>DiagnosticEngine</code></li>
|
|
|
|
<li><code>DiagnosticClient</code> became <code>DiagnosticConsumer</code></li>
|
|
|
|
<li><code>DiagnosticInfo</code> became <code>Diagnostic</code></li>
|
|
|
|
</ul>
|
|
|
|
Subclasses of <code>DiagnosticConsumer</code> were also then renamed to end with
|
|
|
|
<code>Consumer</code>.
|
|
|
|
|
2011-11-28 15:16:19 +08:00
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<h2 id="knownproblems">Significant Known Problems</h2>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
<h2 id="additionalinfo">Additional Information</h2>
|
|
|
|
<!-- ======================================================================= -->
|
|
|
|
|
|
|
|
<p>A wide variety of additional information is available on the
|
|
|
|
<a href="http://clang.llvm.org/">Clang web page</a>. The web page contains
|
|
|
|
versions of the API documentation which are up-to-date with the Subversion
|
|
|
|
version of the source code. You can access versions of these documents specific
|
|
|
|
to this release by going into the "<tt>clang/doc/</tt>" directory in the Clang
|
|
|
|
tree.</p>
|
|
|
|
|
|
|
|
<p>If you have any questions or comments about Clang, please feel free to
|
|
|
|
contact us via the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">
|
|
|
|
mailing list</a>.</p>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|