[all-commits] [llvm/llvm-project] 777eb4: [-Wunsafe-buffer-usage] Handle unevaluated context...
Malavika Samak via All-commits
all-commits at lists.llvm.org
Wed Apr 19 15:53:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 777eb4bcfc3265359edb7c979d3e5ac699ad4641
https://github.com/llvm/llvm-project/commit/777eb4bcfc3265359edb7c979d3e5ac699ad4641
Author: MalavikaSamak <malavika2 at apple.com>
Date: 2023-04-19 (Wed, 19 Apr 2023)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
A clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-unevaluated-context.cpp
A clang/test/SemaCXX/warn-unsafe-buffer-usage-warning-unevaluated-context.cpp
M clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp
Log Message:
-----------
[-Wunsafe-buffer-usage] Handle unevaluated contexts that contain unsafe buffer usages
This patch handles unevaluated contexts to ensure no warnings are produced by the machinery
for buffer access made within an unevaluated contexts. However, such accesses must be
considered by a FixableGadget and produce the necessary fixits.
Reviewed by: NoQ, ziqingluo-90, jkorous
Differential revision: https://reviews.llvm.org/D144905
More information about the All-commits
mailing list