[cfe-commits] Skipping analysis inside of lock functions

Chandler Carruth chandlerc at google.com
Mon Sep 12 16:18:39 PDT 2011


On Mon, Sep 12, 2011 at 4:10 PM, Caitlin Sadowski <supertri at google.com>wrote:

> Attached is a patch which skips analysis inside of lock functions
> (avoiding spurious warnings).
>

Can you give examples of the real-world code that would trigger warnings
without this? I have to admit I'm a bit suspect. It seems like if you're
doing something other than atomic operations and system calls inside of your
lock function, you might well want thread safety annotations for that....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110912/a5f96fe1/attachment.html>


More information about the cfe-commits mailing list