[all-commits] [llvm/llvm-project] 4b5f17: [-Wunsafe-buffer-usage] Do not assert that functio...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Wed Jul 19 14:14:49 PDT 2023


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

  Changed paths:
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-parm-span.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Do not assert that function parameters have names

It is possible that a function parameter does not have a name even in
a function definition.  This patch deals with such cases in generating
function overload fix-its for safe buffers.

Reviewed by: NoQ (Artem Dergachev)

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




More information about the All-commits mailing list