[all-commits] [llvm/llvm-project] bb0cc6: [webkit.NoUncountedMemberChecker] Fix a regression...

Ryosuke Niwa via All-commits all-commits at lists.llvm.org
Tue Mar 18 15:44:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb0cc6948725b8030069c07aeff1fe6abd8fa027
      https://github.com/llvm/llvm-project/commit/bb0cc6948725b8030069c07aeff1fe6abd8fa027
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp
    M clang/test/Analysis/Checkers/WebKit/uncounted-members.cpp

  Log Message:
  -----------
  [webkit.NoUncountedMemberChecker] Fix a regression that every class is treated as if it's ref countable. (#131249)

This PR fixes a regression that webkit.NoUncountedMemberChecker and
alpha.webkit.NoUncheckedMemberChecker emits warnings for every class as
if they supported ref counting and checked ptr because we were
erroneously coercing the return value of isRefCountable and
isCheckedPtrCapable, which is std::optional<bool>, to boolean values.



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


More information about the All-commits mailing list