HomePhabricator

[clang-tidy] Extend bugprone-sizeof-expression to check sizeof(pointers to…

Description

[clang-tidy] Extend bugprone-sizeof-expression to check sizeof(pointers to structures)

Accidentally taking the size of a struct-pointer type or a value of this type
is more common than explicitly using the & operator for the value. This patch
extends the check to include these cases.

Differential Revision: https://reviews.llvm.org/D61260