Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[-Wunsafe-buffer-usage] Add fix-its for function parameters using the…
… `span` strategy Generate fix-its for function parameters that are raw pointers used unsafely. Currently, the analyzer fixes one parameter at a time. Fix-its for a function parameter includes: - Fix the parameter declaration of the definition, result in a new overload of the function. We call the function with the original signature the old overload. - For any other existing declaration of the old overload, mark it with the [[unsafe_buffer_usage]] attribute and generate a new overload declaration next to it. - Creates a new definition for the old overload, which is simply defined by a call to the new overload. Reviewed by: NoQ (Artem Dergachev), t-rasmud (Rashmi Mudduluru), and jkorous (Jan Korous) Differential revision: https://reviews.llvm.org/D143048
- Loading branch information