/usr/share/doc/clang-3.3-doc/html/ReleaseNotes.html is in clang-3.3-doc 1:3.3-16ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Clang 3.3 Release Notes — Clang 3.3 documentation</title>
<link rel="stylesheet" href="_static/haiku.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/print.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '3.3',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/theme_extras.js"></script>
<link rel="top" title="Clang 3.3 documentation" href="index.html" />
<link rel="next" title="Clang Compiler User’s Manual" href="UsersManual.html" />
<link rel="prev" title="Using Clang as a Compiler" href="index.html" />
</head>
<body>
<div class="header"><h1 class="heading"><a href="index.html">
<span>Clang 3.3 documentation</span></a></h1>
<h2 class="heading"><span>Clang 3.3 Release Notes</span></h2>
</div>
<div class="topnav">
<p>
«  <a href="index.html">Using Clang as a Compiler</a>
  ::  
<a class="uplink" href="index.html">Contents</a>
  ::  
<a href="UsersManual.html">Clang Compiler User’s Manual</a>  »
</p>
</div>
<div class="content">
<div class="section" id="clang-3-3-release-notes">
<h1>Clang 3.3 Release Notes<a class="headerlink" href="#clang-3-3-release-notes" title="Permalink to this headline">¶</a></h1>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#introduction" id="id2">Introduction</a></li>
<li><a class="reference internal" href="#what-s-new-in-clang-3-3" id="id3">What’s New in Clang 3.3?</a><ul>
<li><a class="reference internal" href="#major-new-features" id="id4">Major New Features</a></li>
<li><a class="reference internal" href="#c-language-changes-in-clang" id="id5">C Language Changes in Clang</a></li>
<li><a class="reference internal" href="#id1" id="id6">C++ Language Changes in Clang</a></li>
<li><a class="reference internal" href="#internal-api-changes" id="id7">Internal API Changes</a></li>
<li><a class="reference internal" href="#libclang" id="id8">libclang</a></li>
<li><a class="reference internal" href="#static-analyzer" id="id9">Static Analyzer</a></li>
</ul>
</li>
<li><a class="reference internal" href="#core-analysis-improvements" id="id10">Core Analysis Improvements</a></li>
<li><a class="reference internal" href="#new-issues-found" id="id11">New Issues Found</a></li>
<li><a class="reference internal" href="#significant-known-problems" id="id12">Significant Known Problems</a></li>
<li><a class="reference internal" href="#additional-information" id="id13">Additional Information</a></li>
</ul>
</div>
<p>Written by the <a class="reference external" href="http://llvm.org/">LLVM Team</a></p>
<div class="section" id="introduction">
<h2><a class="toc-backref" href="#id2">Introduction</a><a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
<p>This document contains the release notes for the Clang C/C++/Objective-C
frontend, part of the LLVM Compiler Infrastructure, release 3.3. 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 class="reference external" href="http://llvm.org/docs/ReleaseNotes.html">the LLVM documentation</a>. All LLVM
releases may be downloaded from the <a class="reference external" 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 class="reference external" href="http://clang.llvm.org">Clang Web Site</a> or the <a class="reference external" href="http://llvm.org">LLVM Web Site</a>.</p>
<p>Note that if you are reading this file from a Subversion checkout or the main
Clang web page, this document applies to the <em>next</em> release, not the current
one. To see the release notes for a specific release, please see the <a class="reference external" href="http://llvm.org/releases/">releases
page</a>.</p>
</div>
<div class="section" id="what-s-new-in-clang-3-3">
<h2><a class="toc-backref" href="#id3">What’s New in Clang 3.3?</a><a class="headerlink" href="#what-s-new-in-clang-3-3" title="Permalink to this headline">¶</a></h2>
<p>Some of the major new features and improvements to Clang are listed
here. Generic improvements to Clang as a whole or to its underlying
infrastructure are described first, followed by language-specific sections with
improvements to Clang’s support for those languages.</p>
<div class="section" id="major-new-features">
<h3><a class="toc-backref" href="#id4">Major New Features</a><a class="headerlink" href="#major-new-features" title="Permalink to this headline">¶</a></h3>
<div class="section" id="improvements-to-clang-s-diagnostics">
<h4>Improvements to Clang’s diagnostics<a class="headerlink" href="#improvements-to-clang-s-diagnostics" title="Permalink to this headline">¶</a></h4>
<p>Clang’s diagnostics are constantly being improved to catch more issues,
explain them more clearly, and provide more accurate source information
about them. The improvements since the 3.2 release include:</p>
</div>
<div class="section" id="extended-identifiers-unicode-support-and-universal-character-names">
<h4>Extended Identifiers: Unicode Support and Universal Character Names<a class="headerlink" href="#extended-identifiers-unicode-support-and-universal-character-names" title="Permalink to this headline">¶</a></h4>
<p>Clang 3.3 includes support for <em>extended identifiers</em> in C99 and C++.
This feature allows identifiers to contain certain Unicode characters, as
specified by the active language standard; these characters can be written
directly in the source file using the UTF-8 encoding, or referred to using
<em>universal character names</em> (<tt class="docutils literal"><span class="pre">\u00E0</span></tt>, <tt class="docutils literal"><span class="pre">\U000000E0</span></tt>).</p>
</div>
</div>
<div class="section" id="c-language-changes-in-clang">
<h3><a class="toc-backref" href="#id5">C Language Changes in Clang</a><a class="headerlink" href="#c-language-changes-in-clang" title="Permalink to this headline">¶</a></h3>
</div>
<div class="section" id="id1">
<h3><a class="toc-backref" href="#id6">C++ Language Changes in Clang</a><a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li>Clang now correctly implements language linkage for functions and variables.
This means that, for example, it is now possible to overload static functions
declared in an <tt class="docutils literal"><span class="pre">extern</span> <span class="pre">"C"</span></tt> context. For backwards compatibility, an alias
with the unmangled name is still emitted if it is the only one and has the
<tt class="docutils literal"><span class="pre">used</span></tt> attribute.</li>
</ul>
</div>
<div class="section" id="internal-api-changes">
<h3><a class="toc-backref" href="#id7">Internal API Changes</a><a class="headerlink" href="#internal-api-changes" title="Permalink to this headline">¶</a></h3>
<p>These are major API changes that have happened since the 3.2 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.</p>
<div class="section" id="value-casting">
<h4>Value Casting<a class="headerlink" href="#value-casting" title="Permalink to this headline">¶</a></h4>
<p>Certain type hierarchies (TypeLoc, CFGElement, ProgramPoint, and SVal) were
misusing the llvm::cast machinery to perform undefined operations. Their APIs
have been changed to use two member function templates that return values
instead of pointers or references - “T castAs” and “Optional<T> getAs” (in the
case of the TypeLoc hierarchy the latter is “T getAs” and you can use the
boolean testability of a TypeLoc (or its ‘validity’) to verify that the cast
succeeded). Essentially all previous ‘cast’ usage should be replaced with
‘castAs’ and ‘dyn_cast’ should be replaced with ‘getAs’. See r175462 for the
first example of such a change along with many examples of how code was
migrated to the new API.</p>
</div>
<div class="section" id="storage-class">
<h4>Storage Class<a class="headerlink" href="#storage-class" title="Permalink to this headline">¶</a></h4>
<p>For each variable and function Clang used to keep the storage class as written
in the source, the linkage and a semantic storage class. This was a bit
redundant and the semantic storage class has been removed. The method
getStorageClass now returns what is written in the source code for that decl.</p>
</div>
</div>
<div class="section" id="libclang">
<h3><a class="toc-backref" href="#id8">libclang</a><a class="headerlink" href="#libclang" title="Permalink to this headline">¶</a></h3>
<p>The clang_CXCursorSet_contains() function previously incorrectly returned 0
if it contained a CXCursor, contrary to what the documentation stated. This
has been fixed so that the function returns a non-zero value if the set
contains a cursor. This is API breaking change, but matches the intended
original behavior. Moreover, this also fixes the issue of an invalid CXCursorSet
appearing to contain any CXCursor.</p>
</div>
<div class="section" id="static-analyzer">
<h3><a class="toc-backref" href="#id9">Static Analyzer</a><a class="headerlink" href="#static-analyzer" title="Permalink to this headline">¶</a></h3>
<p>The static analyzer (which contains additional code checking beyond compiler
warnings) has improved significantly in both in the core analysis engine and
also in the kinds of issues it can find.</p>
</div>
</div>
<div class="section" id="core-analysis-improvements">
<h2><a class="toc-backref" href="#id10">Core Analysis Improvements</a><a class="headerlink" href="#core-analysis-improvements" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>Support for interprocedural reasoning about constructors and destructors.</li>
<li>New false positive suppression mechanisms that reduced the number of false
null pointer dereference warnings due to interprocedural analysis.</li>
<li>Major performance enhancements to speed up interprocedural analysis</li>
</ul>
</div>
<div class="section" id="new-issues-found">
<h2><a class="toc-backref" href="#id11">New Issues Found</a><a class="headerlink" href="#new-issues-found" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>New memory error checks such as use-after-free with C++ ‘delete’.</li>
<li>Detection of mismatched allocators and deallocators (e.g., using ‘new’ with
‘free()’, ‘malloc()’ with ‘delete’).</li>
<li>Additional checks for misuses of Apple Foundation framework collection APIs.</li>
</ul>
</div>
<div class="section" id="significant-known-problems">
<h2><a class="toc-backref" href="#id12">Significant Known Problems</a><a class="headerlink" href="#significant-known-problems" title="Permalink to this headline">¶</a></h2>
</div>
<div class="section" id="additional-information">
<h2><a class="toc-backref" href="#id13">Additional Information</a><a class="headerlink" href="#additional-information" title="Permalink to this headline">¶</a></h2>
<p>A wide variety of additional information is available on the <a class="reference external" 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 class="docutils literal"><span class="pre">clang/docs/</span></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 class="reference external" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">mailing list</a>.</p>
</div>
</div>
</div>
<div class="bottomnav">
<p>
«  <a href="index.html">Using Clang as a Compiler</a>
  ::  
<a class="uplink" href="index.html">Contents</a>
  ::  
<a href="UsersManual.html">Clang Compiler User’s Manual</a>  »
</p>
</div>
<div class="footer">
© Copyright 2007-2013, The Clang Team.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.
</div>
</body>
</html>
|