Add basic checking for returning null from functions/methods marked…

Press ? to show keyboard shortcuts.
Committed
kremenekJan 21 2014, 10:10 PM
Parents
rL199789: We want to build lld with libc++ and nightly tests with gcc47.
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

Add basic checking for returning null from functions/methods marked 'returns_nonnull'.

This involved making CheckReturnStackAddr into a static function, which
is now called by a top-level return value checking routine called
CheckReturnValExpr.

rL199790

cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Loading...

cfe/trunk/include/clang/Sema/Sema.h

Loading...

cfe/trunk/lib/Sema/SemaChecking.cpp

Loading...

cfe/trunk/lib/Sema/SemaStmt.cpp

Loading...

cfe/trunk/test/Sema/nonnull.c

Loading...

cfe/trunk/test/SemaObjC/nonnull.m

Loading...

Add Comment