[all-commits] [llvm/llvm-project] cfcf76: [-Wunsafe-buffer-usage] Ignore the FixableGadgets ...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Tue Jul 25 16:59:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfcf76c6ad72581917fc65b598e3b64ca28c5ce1
      https://github.com/llvm/llvm-project/commit/cfcf76c6ad72581917fc65b598e3b64ca28c5ce1
  Author: Ziqing Luo <ziqing at udel.edu>
  Date:   2023-07-25 (Tue, 25 Jul 2023)

  Changed paths:
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-pragma-fixit.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Ignore the FixableGadgets that will not be fixed at an earlier stage

`FixableGadget`s are not always associated with variables that are unsafe
(warned). For example, they could be associated with variables whose
unsafe operations are suppressed or that are not used in any unsafe
operation. Such `FixableGadget`s will not be fixed. Removing these
`FixableGadget` as early as possible helps improve the performance
and stability of the analysis.

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

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




More information about the All-commits mailing list