[all-commits] [llvm/llvm-project] ce2d44: [clang-tidy] Accessing checks not done for aliases...

Jorge Pinto Sousa via All-commits all-commits at lists.llvm.org
Mon Jul 3 09:44:31 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce2d44b0ab6da147931e9711e01d44a672ec3854
  Author: Jorge Pinto Sousa <jorge.pinto.sousa at proton.me>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-bounds-constant-array-index.cpp

  Log Message:
  [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

More information about the All-commits mailing list