aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/ConfigParseTest.cpp
diff options
context:
space:
mode:
authorjkorous-apple <32549412+jkorous-apple@users.noreply.github.com>2024-02-12 15:52:20 -0800
committerGitHub <noreply@github.com>2024-02-12 15:52:20 -0800
commit644ac2a018c9bf83c9ba256074e552ad7f1fe941 (patch)
tree2e156b3f438a02968c707fd16da0d809ad9b9bce /clang/unittests/Format/ConfigParseTest.cpp
parentfac6d3d98ba1bac24acc5b19c84d07af25c1b755 (diff)
downloadllvm-644ac2a018c9bf83c9ba256074e552ad7f1fe941.zip
llvm-644ac2a018c9bf83c9ba256074e552ad7f1fe941.tar.gz
llvm-644ac2a018c9bf83c9ba256074e552ad7f1fe941.tar.bz2
[-Wunsafe-buffer-usage] Introduce std::array fixits (#80084)
Array subscript on a const size array is not bounds-checked. The idiomatic replacement is std::array which is bounds-safe in hardened mode of libc++. This commit extends the fixit-producing machine to consider std::array as a transformation target type and teaches it to handle the array subscript on const size arrays with a trivial (empty) fixit.
Diffstat (limited to 'clang/unittests/Format/ConfigParseTest.cpp')
0 files changed, 0 insertions, 0 deletions