[-Wunsafe-buffer-usage] Safe-buffers re-architecture to introduce Fixable gadgets
authorMalavikaSamak <malavika2@apple.com>
Fri, 6 Jan 2023 19:33:49 +0000 (11:33 -0800)
committerMalavikaSamak <malavika2@apple.com>
Fri, 6 Jan 2023 19:45:23 +0000 (11:45 -0800)
commit50d4a1f70e111cd41b1a94d95fd06b5691aa2643
tree44279facc7cd9fa4df9e9ae51c5c294a87fe02a6
parent9b8a64b88dbcb3e881b5b659e91ba6b99245744d
[-Wunsafe-buffer-usage] Safe-buffers re-architecture to introduce Fixable gadgets

Re-architecture of safe-buffers gadgets to re-classify them as warning and fixable
gadgets. The warning gadgets identify unsafe operations on buffer variables and
emit suitable warnings. While the fixable gadgets consider all operations on
variables identified by the warning gadgets and emit necessary fixits.

Differential Revision: https://reviews.llvm.org/D140062?id=486625
clang/include/clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def
clang/lib/Analysis/UnsafeBufferUsage.cpp