[webkit-changes] [WebKit/WebKit] cc2b07: Workaround false negatives with types which inheri...

Ryosuke Niwa noreply at github.com
Fri Oct 18 20:50:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cc2b07beb4cd98dd18e258989791d25ed7138eb3
      https://github.com/WebKit/WebKit/commit/cc2b07beb4cd98dd18e258989791d25ed7138eb3
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2024-10-18 (Fri, 18 Oct 2024)

  Changed paths:
    M Source/WTF/wtf/RefCountedAndCanMakeWeakPtr.h
    M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations
    M Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
    M Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations

  Log Message:
  -----------
  Workaround false negatives with types which inherit from RefCountedAndCanMakeWeakPtr
https://bugs.webkit.org/show_bug.cgi?id=281732

Reviewed by Geoffrey Garen.

Re-define ref() and deref() in RefCountedAndCanMakeWeakPtr to workaround the bug in
the clang static analyzer.

* Source/WTF/wtf/RefCountedAndCanMakeWeakPtr.h:
(WTF::RefCountedAndCanMakeWeakPtr::ref const):
(WTF::RefCountedAndCanMakeWeakPtr::deref const):
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebKit/SaferCPPExpectations/UncountedLocalVarsCheckerExpectations:

Canonical link: https://commits.webkit.org/285457@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list