| 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 (Bounds 3) |
| 12 |
<https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Pro-bounds-decay>`_ |
| 13 |
profile from the C++ Core Guidelines. |