blob: 93c84dc7e3e5fbed196459c61205bea6b7c30c8b [file] [log] [blame]
cppcoreguidelines-pro-bounds-array-to-pointer-decay
===================================================
This check flags all array to pointer decays.
Pointers should not be used as arrays. array_view is a bounds-checked, safe alternative to using pointers to access arrays.
This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-bounds3-no-array-to-pointer-decay