[clang-tidy] Accessing checks not done for aliases of `std::array`
authorJorge Pinto Sousa <jorge.pinto.sousa@proton.me>
Mon, 3 Jul 2023 16:39:31 +0000 (16:39 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Mon, 3 Jul 2023 16:43:08 +0000 (16:43 +0000)
commitce2d44b0ab6da147931e9711e01d44a672ec3854
tree1ff24751d7b12bb62958337c0ac3cda43f9322a9
parent2806cf4b5430ad6d4d5aa2d501aea1de67272876
[clang-tidy] Accessing checks not done for aliases of `std::array`

Index accessing checks are not performed for aliases
of `std::array`, as only `std::array` itself seems to be checked.

This patch aims to extend it for aliases such as:
 `using MyArray = std::array<int, 10>;`

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D154297
clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-bounds-constant-array-index.cpp