[all-commits] [llvm/llvm-project] 3a67b9: [-Wunsafe-buffer-usage] Refactor to let local vari...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Mon Aug 21 14:50:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3a67b912386e70073efcb2225c6354b85048b1ae
https://github.com/llvm/llvm-project/commit/3a67b912386e70073efcb2225c6354b85048b1ae
Author: Ziqing Luo <ziqing at udel.edu>
Date: 2023-08-21 (Mon, 21 Aug 2023)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-local-var-span.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-access.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pointer-deref.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-unevaluated-context.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Refactor to let local variable fix-its and parameter fix-its share common code
Refactor the code for local variable fix-its so that it reuses the
code for parameter fix-its, which is in general better. For example,
cv-qualifiers are supported.
Reviewed by: NoQ (Artem Dergachev), t-rasmud (Rashmi Mudduluru)
Differential revision: https://reviews.llvm.org/D156189
More information about the All-commits
mailing list