[all-commits] [llvm/llvm-project] 8c67f1: [WebKit Checkers] Allow operator T&() in a const m...

Ryosuke Niwa via All-commits all-commits at lists.llvm.org
Tue Feb 11 11:08:14 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c67f14f628420a5e06fe631ec6b323f096f2a43
      https://github.com/llvm/llvm-project/commit/8c67f14f628420a5e06fe631ec6b323f096f2a43
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/ASTUtils.cpp
    M clang/test/Analysis/Checkers/WebKit/call-args-counted-const-member.cpp
    M clang/test/Analysis/Checkers/WebKit/mock-types.h

  Log Message:
  -----------
  [WebKit Checkers] Allow operator T&() in a const member function (#126470)

Allow operator T&() in a member function which returns a const member
variable.

In particular, this will allow UniqueRef::operator T&() and
Ref::operator T&() to be treated as a safe pointer origin when they're
called on a const member.



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