[all-commits] [llvm/llvm-project] 9ae0d8: [alpha.webkit.NoDeleteChecker] Treat a r-value sma...

Ryosuke Niwa via All-commits all-commits at lists.llvm.org
Wed Jun 3 15:19:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ae0d890a9236a94f23d5c3ff84ea08d7a670f03
      https://github.com/llvm/llvm-project/commit/9ae0d890a9236a94f23d5c3ff84ea08d7a670f03
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
    M clang/test/Analysis/Checkers/WebKit/call-args.cpp
    M clang/test/Analysis/Checkers/WebKit/mock-types.h
    M clang/test/Analysis/Checkers/WebKit/nodelete-annotation.cpp
    A clang/test/Analysis/Checkers/WebKit/nodelete-lazy-initialize.cpp

  Log Message:
  -----------
  [alpha.webkit.NoDeleteChecker] Treat a r-value smart pointer return value as no-delete. (#200912)

Skip the checkin g of the destructor of T in ExprWithCleanups /
CXXBindTemporaryExpr when returning a value using r-value reference
since such a construct never invokes delete.

---------

Co-authored-by: Balazs Benics <benicsbalazs at gmail.com>



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