Skip to content

Commit 0392ef9

Browse files
committed
add release note
1 parent 40b2207 commit 0392ef9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/docs/ReleaseNotes.rst

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ Removed Compiler Flags
107107
Attribute Changes in Clang
108108
--------------------------
109109

110+
- Clang now disallows more than one ``__attribute__((ownership_returns(class, idx)))`` with
111+
different class names attached to one function.
112+
110113
Improvements to Clang's diagnostics
111114
-----------------------------------
112115

@@ -206,6 +209,11 @@ Static Analyzer
206209
New features
207210
^^^^^^^^^^^^
208211

212+
- MallocChecker now checks for ``ownership_returns(class, idx)`` and ``ownership_takes(class, idx)``
213+
attributes with class names different from "malloc". Clang static analyzer now reports an error
214+
if class of allocation and deallocation function mismatches.
215+
`Documentation <https://clang.llvm.org/docs/analyzer/checkers.html#unix-mismatcheddeallocator-c-c>`__.
216+
209217
Crash and bug fixes
210218
^^^^^^^^^^^^^^^^^^^
211219

0 commit comments

Comments
 (0)