diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-03-07 01:23:25 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-03-07 01:23:25 +0000 |
| commit | b41977f85254c4f8512200e5006fa56d55316d52 (patch) | |
| tree | 5fdf5358f3421cde3ebc2ca578a33b3b3ced1f90 /lldb/scripts/Python/edit-swig-python-wrapper-file.py | |
| parent | 6f09928d5bb71f91b85a95388766bbee7c0754ea (diff) | |
| download | bcm5719-llvm-b41977f85254c4f8512200e5006fa56d55316d52.tar.gz bcm5719-llvm-b41977f85254c4f8512200e5006fa56d55316d52.zip | |
[analyzer] Check for returning null references in ReturnUndefChecker.
Officially in the C++ standard, a null reference cannot exist. However,
it's still very easy to create one:
int &getNullRef() {
int *p = 0;
return *p;
}
We already check that binds to reference regions don't create null references.
This patch checks that we don't create null references by returning, either.
<rdar://problem/13364378>
llvm-svn: 176601
Diffstat (limited to 'lldb/scripts/Python/edit-swig-python-wrapper-file.py')
0 files changed, 0 insertions, 0 deletions

