Ted Kremenek
26984fb4eb
Remove copy of 'Optional' in Clang tree, and convert clients to use the one now in the LLVM tree.
...
llvm-svn: 100891
2010-04-09 20:26:58 +00:00
Ted Kremenek
212182d12b
For 'open' check in UnixAPIChecker, hard code value of 'O_CREAT' on Darwin.
...
This is still not an ideal solution, but should disable the check for other
targets where the value of O_CREAT is different.
llvm-svn: 100818
2010-04-08 22:15:34 +00:00
Ted Kremenek
769b06cba3
Temporarily only enable 'open' check on Mac OS X to unbreak Windows buildbot. I'm
...
looking into an alternate fix right now.
llvm-svn: 100816
2010-04-08 21:54:13 +00:00
Ted Kremenek
ea4a5abf61
Add static analyzer check for calls to 'pthread_once()' where the control-flow has
...
automatic storage. This matches the corresponding check for 'dispatch_once()'.
llvm-svn: 100803
2010-04-08 19:53:31 +00:00
Benjamin Kramer
c048322523
Checker: random include cleanup.
...
llvm-svn: 99731
2010-03-27 21:19:47 +00:00
Ted Kremenek
5563dea713
When generating error node, check to see if we already cached out.
...
llvm-svn: 97115
2010-02-25 05:44:05 +00:00
Ted Kremenek
d55522f02e
Add UnixAPIChecker, a meta checker to include various precondition checks for calls
...
to various unix/posix functions, e.g. 'open()'.
As a first check, check that when 'open()' is passed 'O_CREAT' that it has
a third argument.
llvm-svn: 97086
2010-02-25 00:20:35 +00:00