diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-05-29 20:50:34 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-05-29 20:50:34 +0000 |
commit | 1acb394679b6e644044a0f6c358229759009b1a6 (patch) | |
tree | e635fe425822d6fa2f9efdcdbaf791db50b1349e /unittests/CMakeLists.txt | |
parent | 42b7861f957591ab40128419dcef0fae081364d6 (diff) | |
download | clang-1acb394679b6e644044a0f6c358229759009b1a6.tar.gz clang-1acb394679b6e644044a0f6c358229759009b1a6.tar.bz2 clang-1acb394679b6e644044a0f6c358229759009b1a6.tar.xz |
[analyzer] Accept references to variables declared "extern void" (C only).
In C, 'void' is treated like any other incomplete type, and though it is
never completed, you can cast the address of a void-typed variable to do
something useful. (In C++ it's illegal to declare a variable with void type.)
Previously we asserted on this code; now we just treat it like any other
incomplete type.
And speaking of incomplete types, we don't know their extent. Actually
check that in TypedValueRegion::getExtent, though that's not being used
by any checkers that are on by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions