HomePhabricator

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

Authored by baloghadamsoftware on May 6 2019, 11:16 PM.

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

llvm-svn: 360114