Skip to content
Commit ecd1a82e authored by Adam Balogh's avatar Adam Balogh
Browse files

[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
parent 912251e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment