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