]> granicus.if.org Git - clang/commitdiff
ReleaseNotes: static analyzer, by Anna Zaks
authorHans Wennborg <hans@hanshq.net>
Fri, 12 Feb 2016 20:20:26 +0000 (20:20 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 12 Feb 2016 20:20:26 +0000 (20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_38@260716 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index a5dfb562c8e93509f9852385f426a936a912e606..81a0091878d2bd150d5d5ac252809b0a016b574f 100644 (file)
@@ -204,7 +204,26 @@ libclang
 Static Analyzer
 ---------------
 
-...
+The scan-build and scan-view tools will now be installed with clang. Use these
+tools to run the static analyzer on projects and view the produced results.
+
+Static analysis of C++ lambdas has been greatly improved, including
+interprocedural analysis of lambda applications.
+
+Several new checks were added:
+
+- The analyzer now checks for misuse of ``vfork()``.
+- The analyzer can now detect excessively-padded structs. This check can be
+  enabled by passing the following command to scan-build:
+  ``-enable-checker optin.performance.Padding``.
+- The checks to detect misuse of ``_Nonnull`` type qualifiers as well as checks
+  to detect misuse of Objective-C generics were added.
+- The analyzer now has opt in checks to detect localization errors in Coca
+  applications. The checks warn about uses of non-localized ``NSStrings``
+  passed to UI methods expecting localized strings and on ``NSLocalizedString``
+  macros that are missing the comment argument. These can be enabled by passing
+  the following command to scan-build:
+  ``-enable-checker optin.osx.cocoa.localizability``.
 
 Core Analysis Improvements
 ==========================