diff options
author | Balázs Kéri <1.int32@gmail.com> | 2020-11-19 09:03:22 +0100 |
---|---|---|
committer | Balázs Kéri <1.int32@gmail.com> | 2020-11-19 10:26:33 +0100 |
commit | 47518d6a0aed7ec3607aeacfa511dedda2cd67cb (patch) | |
tree | 4cd1c128f620a78922fcdbf6c7b481348ff29cb0 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp | |
parent | 58ce4a8b1190f2ccc584140ca7fd1a6391846f3d (diff) | |
download | llvm-47518d6a0aed7ec3607aeacfa511dedda2cd67cb.zip llvm-47518d6a0aed7ec3607aeacfa511dedda2cd67cb.tar.gz llvm-47518d6a0aed7ec3607aeacfa511dedda2cd67cb.tar.bz2 |
[clang-tidy] Improving bugprone-sizeof-expr check.
Do not warn for "pointer to aggregate" in a `sizeof(A) / sizeof(A[0])`
expression if `A` is an array of pointers. This is the usual way of
calculating the array length even if the array is of pointers.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D91543
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions