[all-commits] [llvm/llvm-project] 5be422: [Fix][-Wunsafe-buffer-usage] Add a new `forEachDes...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Fri Jan 6 14:49:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5be422b49288d7b9394312ad5ccba1fef42116e6
      https://github.com/llvm/llvm-project/commit/5be422b49288d7b9394312ad5ccba1fef42116e6
  Author: ziqingluo-90 <ziqing at udel.edu>
  Date:   2023-01-06 (Fri, 06 Jan 2023)

  Changed paths:
    M clang/lib/Analysis/UnsafeBufferUsage.cpp

  Log Message:
  -----------
  [Fix][-Wunsafe-buffer-usage] Add a new `forEachDescendant` matcher that skips callable declarations

The original patch does include a `new` statement without a matching
`delete`, causing Sanitizer warnings in
https://lab.llvm.org/buildbot/#/builders/5/builds/30522/steps/13/logs/stdio.

This commit is a fix to it.

Differential Revision: https://reviews.llvm.org/D138329




More information about the All-commits mailing list