From owner-svn-src-vendor@FreeBSD.ORG Sat Dec 22 15:00:56 2012
Return-Path:
Delivered-To: svn-src-vendor@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
by hub.freebsd.org (Postfix) with ESMTP id 4A5D7AD9;
Sat, 22 Dec 2012 15:00:56 +0000 (UTC) (envelope-from dim@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org
[IPv6:2001:1900:2254:2068::e6a:0])
by mx1.freebsd.org (Postfix) with ESMTP id 2D0788FC0A;
Sat, 22 Dec 2012 15:00:56 +0000 (UTC)
Received: from svn.freebsd.org (localhost [127.0.0.1])
by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBMF0uPN098239;
Sat, 22 Dec 2012 15:00:56 GMT (envelope-from dim@svn.freebsd.org)
Received: (from dim@localhost)
by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBMF0sRj098221;
Sat, 22 Dec 2012 15:00:54 GMT (envelope-from dim@svn.freebsd.org)
Message-Id: <201212221500.qBMF0sRj098221@svn.freebsd.org>
From: Dimitry Andric
Date: Sat, 22 Dec 2012 15:00:54 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-vendor@freebsd.org
Subject: svn commit: r244592 - in vendor/clang/dist: docs include/clang/Sema
lib/Basic lib/Driver lib/Parse lib/Sema
test/CXX/basic/basic.scope/basic.scope.local test/Parser
X-SVN-Group: vendor
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-vendor@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: SVN commit messages for the vendor work area tree
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Sat, 22 Dec 2012 15:00:56 -0000
Author: dim
Date: Sat Dec 22 15:00:54 2012
New Revision: 244592
URL: http://svnweb.freebsd.org/changeset/base/244592
Log:
Vendor import of clang tags/RELEASE_32/final r170710 (effectively, 3.2
release):
http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_32/final@170710
Modified:
vendor/clang/dist/docs/ReleaseNotes.html
vendor/clang/dist/include/clang/Sema/Scope.h
vendor/clang/dist/lib/Basic/Version.cpp
vendor/clang/dist/lib/Driver/ToolChains.cpp
vendor/clang/dist/lib/Parse/ParseDeclCXX.cpp
vendor/clang/dist/lib/Parse/ParseStmt.cpp
vendor/clang/dist/lib/Sema/IdentifierResolver.cpp
vendor/clang/dist/test/CXX/basic/basic.scope/basic.scope.local/p2.cpp
vendor/clang/dist/test/Parser/bracket-crash.cpp
Modified: vendor/clang/dist/docs/ReleaseNotes.html
==============================================================================
--- vendor/clang/dist/docs/ReleaseNotes.html Sat Dec 22 14:59:27 2012 (r244591)
+++ vendor/clang/dist/docs/ReleaseNotes.html Sat Dec 22 15:00:54 2012 (r244592)
@@ -43,12 +43,6 @@ td {
Written by the LLVM Team
-These are in-progress notes for the upcoming Clang 3.2
-release.
-You may prefer the
-Clang 3.1
-Release Notes.
-
Introduction
@@ -91,7 +85,7 @@ explain them more clearly, and provide m
them. The improvements since the 3.1 release include:
- - -Wuninitialized has been taught to recognise uninitialized uses
+
- -Wuninitialized has been taught to recognize uninitialized uses
which always occur when an explicitly-written non-constant condition is either
true or false. For example:
@@ -170,14 +164,11 @@ int f(vector<map<int, double>&g
- - Clang's -fcatch-undefined-behavior option has been renamed to
- -fsanitize=undefined and has grown the ability to check for several
- new types of undefined behavior. See the Users Manual for more information.
-
-
-
-
-
+
- The Address Sanitizer feature and Clang's -fcatch-undefined-behavior option have been moved to a unified flag set:
+ -fsanitize. This flag can be used to enable the different dynamic checking tools when building. For example,
+ -faddress-sanitizer is now -fsanitize=address, and -fcatch-undefined-behavior is now
+ -fsanitize=undefined. With this release the set of checks available continues to grow, see the Clang
+ documentation and specific sanitizer notes below for details.
@@ -215,6 +206,35 @@ function call.
pointer_with_type_tag and type_tag_for_datatype
attributes in Clang language extensions documentation.
+Documentation comment support
+Clang now supports documentation comments written in a Doxygen-like syntax.
+Clang parses the comments and can detect syntactic and semantic errors in
+comments. These warnings are off by default. Pass -Wdocumentation
+flag to enable warnings about documentation comments.
+
+For example, given:
+
+/// \param [in] Str the string.
+/// \returns a modified string.
+void do_something(const std::string &str);
+
+clang -Wdocumentation will emit two warnings:
+
+doc-test.cc:3:6: warning: '\returns' command used in a comment that is attached to a function returning void [-Wdocumentation]
+/// \returns a modified string.
+ ~^~~~~~~~~~~~~~~~~~~~~~~~~~
+doc-test.cc:2:17: warning: parameter 'Str' not found in the function declaration [-Wdocumentation]
+/// \param [in] Str the string.
+ ^~~
+doc-test.cc:2:17: note: did you mean 'str'?
+/// \param [in] Str the string.
+ ^~~
+ str
+
+libclang includes a new API, clang_FullComment_getAsXML, to convert
+comments to XML documents. This API can be used to build documentation
+extraction tools.
+
New Compiler Flags
@@ -239,7 +259,8 @@ attributes in Clang language extensions
C11 Feature Support
-...
+Clang 3.2 adds support for the C11 _Alignof keyword, pedantic warning through option
+ -Wempty-translation-unit (C11 6.9p1)
C++ Language Changes in Clang
@@ -247,40 +268,42 @@ attributes in Clang language extensions
C++11 Feature Support
-...
+Clang 3.2 supports most of the language features
+ added in the latest ISO C++ standard,C++ 2011.
+ Use -std=c++11 or -std=gnu++11 to enable support for these features. In addition to the features supported by Clang 3.1, the
+ following features have been added:
-
-Objective-C Language Changes in Clang
-
-
-...
+
+ - Implemented the C++11 discarded value expression rules for volatile lvalues.
+ - Support for the C++11 enum forward declarations.
+ - Handling of C++11 attribute namespaces (automatically).
+ - Implemented C++11 [conv.prom]p4: an enumeration with a fixed underlying type has integral promotions
+ to both its underlying type and to its underlying type's promoted type.
+
-Internal API Changes
+Objective-C Language Changes in Clang
-These are major API changes that have happened since the 3.1 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.
-
-API change 1
-
-...
+Bug-fixes, no functionality changes.
Python Binding Changes
-The following methods have been added:
+The following classes and methods have been added:
- - ...
+ - class CompilationDatabaseError(Exception)
+ - class CompileCommand(object)
+ - class CompileCommands(object)
+ - class CompilationDatabase(ClangObject)
+ - Cursor.is_static_method
+ - Cursor.is_static_method
+ - SourceLocation.from_offset
+ - Cursor.is_static_method
-Significant Known Problems
-
-
-
Additional Information
@@ -296,17 +319,6 @@ The following methods have been added:
the mailing
list.
-
-
-
-