You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/docs/analyzer/checkers.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3669,7 +3669,7 @@ Here are some examples of situations that we warn about as they *might* be poten
3669
3669
}
3670
3670
3671
3671
alpha.webkit.UnretainedLocalVarsChecker
3672
-
""""""""""""""""""""""""""""""""""""""
3672
+
"""""""""""""""""""""""""""""""""""""""
3673
3673
The goal of this rule is to make sure that any NS or CF local variable is backed by a RetainPtr with lifetime that is strictly larger than the scope of the unretained local variable. To be on the safe side we require the scope of an unretained variable to be embedded in the scope of Retainptr object that backs it.
3674
3674
3675
3675
The rules of when to use and not to use RetainPtr are same as alpha.webkit.UncountedCallArgsChecker for ref-counted objects.
0 commit comments