[cfe-commits] [PATCH] Handle CXXTempObjectRegion in StackAddrEscapeChecker

Jeffrey Yasskin jyasskin at google.com
Thu Aug 25 17:05:05 PDT 2011


Hi Ted,

Here's a patch that adds support for CXXTempObjectRegions in
StackAddrEscapeChecker. I changed stack-addr-ps.cpp to exercise it,
but to do that I had to extract the -fblocks test into a different
file since a single error seems to prevent the analysis from running.

Running the analyzer appears to duplicate warnings that are produced
by Sema too. This is annoying, but since stack-addr-ps.c includes the
duplicate warnings, I assume that's expected.

Jeffrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addr-escape-temp-object.patch
Type: text/x-patch
Size: 7300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110825/c159130d/attachment.bin>


More information about the cfe-commits mailing list