[-Wunsafe-buffer-usage] Emit Fix-Its only for C++20 and later standards
authorJan Korous <jkorous@apple.com>
Fri, 10 Feb 2023 01:01:30 +0000 (17:01 -0800)
committerJan Korous <jkorous@apple.com>
Fri, 10 Feb 2023 01:28:27 +0000 (17:28 -0800)
commit8b6ae9bd7466bd3ceefcd8bd0262b9b085481697
treee788158fca313c0f7b5b5dc6d1f566e2500f9646
parentf71de259c373cf91abf33c99f375fb9c64c3a441
[-Wunsafe-buffer-usage] Emit Fix-Its only for C++20 and later standards

The transformation strategy we are bringing up heavily relies on std::span which was introduced as part of C++20.

Differential Revision: https://reviews.llvm.org/D143455
clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h
clang/lib/Analysis/UnsafeBufferUsage.cpp
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage-no-fixits.cpp [new file with mode: 0644]