[all-commits] [llvm/llvm-project] 41818c: [clang-tidy] Access checks not done classes derive...
Jorge Pinto Sousa via All-commits
all-commits at lists.llvm.org
Fri Aug 25 10:09:20 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41818ce150fd7534480a28d6c0d603f1a503db79
https://github.com/llvm/llvm-project/commit/41818ce150fd7534480a28d6c0d603f1a503db79
Author: Jorge Pinto Sousa <jorge.pinto.sousa at proton.me>
Date: 2023-08-25 (Fri, 25 Aug 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] Access checks not done classes derived of std::array
Index accessing checks are not performed for derived classes of
of `std::array`, as only `std::array` itself and its aliases
seems to be checked.
This patch aims to extend it for derived classes such as:
```
template<class T, size_t N>
class DerivedArray : public std::array<T, N> {};
```
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D156624
More information about the All-commits
mailing list