[all-commits] [llvm/llvm-project] 41279e: [-Wunsafe-buffer-usage] Refactor and improve for p...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Thu Aug 17 15:28:07 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41279e870fa577f8a7f7030b8e45da250d0def9e
https://github.com/llvm/llvm-project/commit/41279e870fa577f8a7f7030b8e45da250d0def9e
Author: Ziqing Luo <ziqing at udel.edu>
Date: 2023-08-17 (Thu, 17 Aug 2023)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-parm-span.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-parm-unsupported.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Refactor and improve for parameter fix-its
- Factor out the code that will be shared by both parameter and local variable fix-its
- Add a check to ensure that a TypeLoc::isNull is false before using the TypeLoc
- Remove the special check for whether a fixing variable involves unnamed types. This check is unnecessary now.
- Move tests for cv-qualified parameters and unnamed types out of the "...-unsupported.cpp" test file.
Reviewed by: NoQ (Artem Dergachev)
Differential revision: https://reviews.llvm.org/D156188
More information about the All-commits
mailing list