[all-commits] [llvm/llvm-project] 436504: [webkit.UncountedLambdaCapturesChecker] Treat ever...

Ryosuke Niwa via All-commits all-commits at lists.llvm.org
Fri May 9 17:44:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 436504c3b9db3bd11d34ec7457b52bef43fc35cc
      https://github.com/llvm/llvm-project/commit/436504c3b9db3bd11d34ec7457b52bef43fc35cc
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLambdaCapturesChecker.cpp
    M clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp

  Log Message:
  -----------
  [webkit.UncountedLambdaCapturesChecker] Treat every argument of std::ranges functions as noescape. (#138995)

Functions in std::ranges namespace does not store the lambada passed-in
as an arugment in heap so treat such an argument as if it has
[[noescape]] in the WebKit lambda capture checker so that we don't emit
warnings for capturing raw pointers or references to smart-pointer
capable objects.



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