[all-commits] [llvm/llvm-project] 700bae: [-Wunsafe-buffer-usage] Use `Strategy` to determin...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Thu Sep 21 15:08:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 700baeb765cfe8628eb68bc24319b3db0209dd84
      https://github.com/llvm/llvm-project/commit/700baeb765cfe8628eb68bc24319b3db0209dd84
  Author: Ziqing Luo <ziqing at udel.edu>
  Date:   2023-09-21 (Thu, 21 Sep 2023)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-multi-parm-span.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-fixits-test.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-ptr-init-fixits.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-ptr-init.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-uuc-fixits.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-uuc.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-multi-decl-warnings.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma-fixit.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Use `Strategy` to determine whether to fix a parameter

- Use Strategy to determine whether to fix a parameter
- Fix the `Strategy` construction so that only variables on the graph
are assigned the `std::span` strategy

Reviewed by: t-rasmud (Rashmi Mudduluru), NoQ (Artem Dergachev)

Differential revision: https://reviews.llvm.org/D157441




More information about the All-commits mailing list