]> granicus.if.org Git - clang/commitdiff
Mention some warning-related additions and changes for LLVM 5
authorAlex Lorenz <arphaman@gmail.com>
Mon, 21 Aug 2017 17:47:51 +0000 (17:47 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 21 Aug 2017 17:47:51 +0000 (17:47 +0000)
release notes

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@311357 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index 982abb024525d84871504b0edee310046afd0ac0..9d7bbad7bbddb1de444043b9cc5574e8e2e98ae6 100644 (file)
@@ -58,6 +58,25 @@ Improvements to Clang's diagnostics
 -  -Wunused-lambda-capture warns when a variable explicitly captured
    by a lambda is not used in the body of the lambda.
 
+-  -Wstrict-prototypes is a new warning that warns about non-prototype
+   function and block declarations and types in C and Objective-C.
+
+-  -Wunguarded-availability is a new warning that warns about uses of new
+   APIs that were introduced in a system whose version is newer than the
+   deployment target version. A new Objective-C expression ``@available`` has
+   been introduced to perform system version checking at runtime. This warning
+   is off by default to prevent unexpected warnings in existing projects.
+   However, its less strict sibling -Wunguarded-availability-new is on by
+   default. It warns about unguarded uses of APIs only when they were introduced
+   in or after macOS 10.13, iOS 11, tvOS 11 or watchOS 4.
+
+-  The -Wdocumentation warning now allows the use of ``\param`` and
+   ``\returns`` documentation directives in the documentation comments for
+   declarations with a function or a block pointer type.
+
+-  The compiler no longer warns about unreachable ``__builtin_unreachable``
+   statements.
+
 New Compiler Flags
 ------------------