[all-commits] [llvm/llvm-project] 33f616: [-Wunsafe-buffer-usage] Group parameter fix-its

Ziqing Luo via All-commits all-commits at lists.llvm.org
Thu Sep 21 12:45:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33f6161d9eaaa7c5a01ee8e50dec440d3052d34a
      https://github.com/llvm/llvm-project/commit/33f6161d9eaaa7c5a01ee8e50dec440d3052d34a
  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/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/lib/Sema/AnalysisBasedWarnings.cpp
    A clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-multi-parm-span.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-parm-span.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Group parameter fix-its

For a function `F` whose parameters need to be fixed, we group fix-its
of F's parameters together so that either all of the parameters get
fixed or none of them gets fixed.

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

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




More information about the All-commits mailing list