]> granicus.if.org Git - clang/commit
[analyzer] Add a simple check for initializing reference variables with null.
authorJordan Rose <jordan_rose@apple.com>
Thu, 2 Aug 2012 21:33:42 +0000 (21:33 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 2 Aug 2012 21:33:42 +0000 (21:33 +0000)
commit9f3b9d54ccbbf212591602f389ebde7923627490
treebcbcdb69c5cc0b5c12f7e4d52cf4cce11b7485d0
parentc27bc80a98b9558513b50956c930eedc9e461ae0
[analyzer] Add a simple check for initializing reference variables with null.

There's still more work to be done here; this doesn't catch reference
parameters or return values. But it's a step in the right direction.

Part of <rdar://problem/11212286>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161214 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
test/Analysis/initializer.cpp
test/Analysis/misc-ps-region-store.cpp
test/Analysis/reference.cpp