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
{{ message }}
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: clang/docs/analyzer/checkers.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3442,6 +3442,27 @@ Check for non-determinism caused by sorting of pointers.
3442
3442
alpha.WebKit
3443
3443
^^^^^^^^^^^^
3444
3444
3445
+
.. _alpha-webkit-NoUncheckedPtrMemberChecker:
3446
+
3447
+
alpha.webkit.NoUncheckedPtrMemberChecker
3448
+
""""""""""""""""""""""""""""""""""""""""
3449
+
Raw pointers and references to an object which supports CheckedPtr or CheckedRef can't be used as class members. Only CheckedPtr, CheckedRef, RefPtr, or Ref are allowed.
3450
+
3451
+
.. code-block:: cpp
3452
+
3453
+
struct CheckableObj {
3454
+
void incrementPtrCount() {}
3455
+
void decrementPtrCount() {}
3456
+
};
3457
+
3458
+
struct Foo {
3459
+
CheckableObj* ptr; // warn
3460
+
CheckableObj& ptr; // warn
3461
+
// ...
3462
+
};
3463
+
3464
+
See `WebKit Guidelines for Safer C++ Programming <https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines>`_ for details.
0 commit comments