summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-02-21 18:27:27 +0000
committerHans Wennborg <hans@hanshq.net>2017-02-21 18:27:27 +0000
commitae27a064af69f173c4b84a5863925f493cdd4bac (patch)
tree231917f1585d3d1a66fd0b7458779a963d6de1bb
parent86fb9eec6cc7843df17ad8fc3feb75f09c067459 (diff)
ReleaseNotes: static analyzer; by Anna Zaks
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@295742 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/ReleaseNotes.rst24
1 files changed, 17 insertions, 7 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 08d7a7583f..8363ae457d 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -241,17 +241,27 @@ show the description of the defects.
Static Analyzer
---------------
-...
+With the option --show-description, scan-build's list of defects will also
+show the description of the defects.
-Core Analysis Improvements
-==========================
+The analyzer now provides better support of code that uses gtest.
-- ...
+Several new checks were added:
-New Issues Found
-================
+- The analyzer warns when virtual calls are made from constructors or
+ destructors. This check is off by default but can be enabled by passing the
+ following command to scan-build: -enable-checker optin.cplusplus.VirtualCall.
+- The analyzer checks for synthesized copy properties of mutable types in
+ Objective C, such as NSMutableArray. Calling the setter for these properties
+ will store an immutable copy of the value.
+- The analyzer checks for calls to dispatch_once() that use an Objective-C
+ instance variable as the predicate. Using an instance variable as a predicate
+ may result in the passed-in block being executed multiple times or not at all.
+ These calls should be rewritten either to use a lock or to store the predicate
+ in a global or static variable.
+- The analyzer checks for unintended comparisons of NSNumber, CFNumberRef, and
+ other Cocoa number objects to scalar values.
-- ...
Python Binding Changes
----------------------