From 41e20f564abdb05101d6b2b29c59459a966c22cc Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 23 May 2012 21:39:13 +0000 Subject: [PATCH] Vendor import of clang release_31 r156863 (the actual 3.1 release): http://llvm.org/svn/llvm-project/cfe/branches/release_31@156863 --- docs/ReleaseNotes.html | 88 +++++++++++++++++------------------------- lib/Basic/Version.cpp | 2 +- 2 files changed, 37 insertions(+), 53 deletions(-) diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index f49f7f851902..8367b8a7dd76 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -26,14 +26,12 @@ td {
  • Introduction
  • What's New in Clang 3.1?
  • -
  • Known Problems
  • Additional Information
  • @@ -41,12 +39,6 @@ td {

    Written by the LLVM Team

    -

    These are in-progress notes for the upcoming Clang 3.1 -release.
    -You may prefer the -Clang 3.0 -Release Notes.

    -

    Introduction

    @@ -78,25 +70,6 @@ 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.

    - -

    Major New Features

    - - -

    Feature 1

    -... - -

    New and better diagnostics

    - -

    New: -Wdangling-else, -Wstrncat-size, ...

    - -

    Improved: -Wformat, -Wempty-body, --Wliteral-conversion, ...

    - -

    Tooling

    - -

    Added an API to enable clang-based standalone tools, including initial build -system integration.

    -

    C Language Changes in Clang

    @@ -141,24 +114,47 @@ following are now considered to be of production quality: Clang 3.1 introduces several new Objective-C language features and improvements. +

    Objective-C literals and subscripting

    + +

    Objective-C now provides additional literal expressions, including numeric, array, and dictionary literals. Additionally, array and dictionary elements can be accesses via the subscripting operator. For more information about the new literals, see the documentation for Objective-C literals and subscripting. +

    Format string checking for NSString literals

    --Wformat now checks @"nsstring literals". +-Wformat now checks @"NSString literals". -

    Internal API Changes

    +

    Python Binding Changes

    -These are major API changes that have happened since the 3.0 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

    -... - - -

    Significant Known Problems

    - +The following methods have been added: +

    Additional Information

    @@ -176,18 +172,6 @@ contact us via the mailing list.

    - - - - - diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp index cd16b4b02745..8cb238632b78 100644 --- a/lib/Basic/Version.cpp +++ b/lib/Basic/Version.cpp @@ -32,7 +32,7 @@ std::string getClangRepositoryPath() { // If the SVN_REPOSITORY is empty, try to use the SVN keyword. This helps us // pick up a tag in an SVN export, for example. - static StringRef SVNRepository("$URL: http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final/lib/Basic/Version.cpp $"); + static StringRef SVNRepository("$URL: http://llvm.org/svn/llvm-project/cfe/branches/release_31/lib/Basic/Version.cpp $"); if (URL.empty()) { URL = SVNRepository.slice(SVNRepository.find(':'), SVNRepository.find("/lib/Basic"));