| 1 |
.. title:: clang-tidy - cppcoreguidelines-pro-bounds-array-to-pointer-decay |
| 2 |
|
| 3 |
cppcoreguidelines-pro-bounds-array-to-pointer-decay |
| 4 |
=================================================== |
| 5 |
|
| 6 |
This check flags all array to pointer decays. |
| 7 |
|
| 8 |
Pointers should not be used as arrays. ``span<T>`` is a bounds-checked, safe |
| 9 |
alternative to using pointers to access arrays. |
| 10 |
|
| 11 |
This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see |
| 12 |
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-bounds-decay. |