]> granicus.if.org Git - clang/commit
When warning about unsafe uses of dispatch_once, specially handle the
authorTed Kremenek <kremenek@apple.com>
Thu, 13 Sep 2012 18:18:37 +0000 (18:18 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 13 Sep 2012 18:18:37 +0000 (18:18 +0000)
commitbe879727893994532b4a643bfae6fb656742057f
tree8301686948a8bad7dc549b98878a0461d4756c6d
parentca5c4c9bfeb4b1ac645b04723c0319b0fc96073e
When warning about unsafe uses of dispatch_once, specially handle the
crazy case where dispatch_once gets redefined as a macro that calls
_dispatch_once (which calls the real dispatch_once).  Users want to
see the warning in their own code.

Fixes <rdar://problem/11617767>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MacOSXAPIChecker.cpp
test/Analysis/unix-fns.c