From: Hans Wennborg Date: Fri, 12 Feb 2016 20:20:26 +0000 (+0000) Subject: ReleaseNotes: static analyzer, by Anna Zaks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de7a8d34feb344cf24846f2eeb1cb78238d4d4e6;p=clang ReleaseNotes: static analyzer, by Anna Zaks git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_38@260716 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index a5dfb562c8..81a0091878 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -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 ==========================