14 lines · plain
1.. title:: clang-tidy - cppcoreguidelines-pro-bounds-array-to-pointer-decay2 3cppcoreguidelines-pro-bounds-array-to-pointer-decay4===================================================5 6This check flags all array to pointer decays.7 8Pointers should not be used as arrays. ``span<T>`` is a bounds-checked, safe9alternative 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