Skip to content

Commit 295596e

Browse files
committed
Clarify the correct use of NS and CF types with respect to ARC
1 parent edba566 commit 295596e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/docs/analyzer/checkers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ See `WebKit Guidelines for Safer C++ Programming <https://github.com/WebKit/WebK
34893489
34903490
alpha.webkit.UnretainedLambdaCapturesChecker
34913491
""""""""""""""""""""""""""""""""""""""""""""
3492-
Raw pointers and references to unretained types can't be captured in lambdas. Only RetainPtr is allowed.
3492+
Raw pointers and references to NS or CF types can't be captured in lambdas. Only RetainPtr is allowed for CF types regardless of whether ARC is enabled or disabled, and only RetainPtr is allowed for NS types when ARC is disabled.
34933493
34943494
.. code-block:: cpp
34953495

0 commit comments

Comments
 (0)