Skip to content
Commit 0c28bc20 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

[analyzer] Tweak MallocSizeOfChecker to not warn when using sizeof(void*) to...

[analyzer] Tweak MallocSizeOfChecker to not warn when using sizeof(void*) to allocate a bunch of any pointer type.

This suppresses a common false positive when analyzing libc++.

Along the way, introduce some tests to show this checker actually
works with C++ static_cast<>.

llvm-svn: 220160
parent 11751538
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment