- Oct 06, 2011
-
-
Anna Zaks authored
llvm-svn: 141262
-
Eric Christopher authored
non-fragile ABI we may not be able to lay out the type and the debugger would ignore us even if we did put in the offset. Go ahead and just put any value there and don't look up the offset since it may not exist. rdar://10210157 llvm-svn: 141261
-
Eric Christopher authored
llvm-svn: 141260
-
Ted Kremenek authored
Fix major regression in RetainCountChecker. DefaultSummaries were not being used when they were meant to be. Fixes <rdar://problem/10241614>. llvm-svn: 141250
-
Anna Zaks authored
[analyzer] Remove the last dependency on CheckerContext::getNodeBuilder() as well as the method itself. Checkers should not directly access NodeBuilder, nodes can be created by calling the CheckerContext's generateNode() methods. llvm-svn: 141249
-
Anna Zaks authored
[analyzer] OSAtomicChecker implements evalCall in a very invasive way - it essentially simulates inlining of compareAndSwap() by means of setting the NodeBuilder flags and calling ExprEngine directly. This commit introduces a new callback just for this checker to unblock checker API cleanup. llvm-svn: 141246
-
- Oct 05, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 141216
-
-
Daniel Dunbar authored
line options. - <rdar://problem/10120602>, PR9631 llvm-svn: 141211
-
Eli Friedman authored
Use APFloat::toString to print APFloats more precisely in the AST printer. Patch by Olaf Krzikalla. llvm-svn: 141208
-
Chad Rosier authored
quoting code. llvm-svn: 141205
-
Chad Rosier authored
reasons. However, it does seems practical to quote strings that need it. rdar://10221951 llvm-svn: 141202
-
-
Douglas Gregor authored
from Manuel Holtgrewe! llvm-svn: 141200
-
Justin Holewinski authored
llvm-svn: 141193
-
Douglas Gregor authored
llvm-svn: 141181
-
Douglas Gregor authored
llvm-svn: 141180
-
Douglas Gregor authored
creation, so that only a single Clang instance will rebuild a given module at once (and the others will wait). We still don't clean up the lock files when we crash, which is a rather unfortunate problem. I'll handle that next, and there is certainly a *lot* of room for further improvements. llvm-svn: 141179
-
Abramo Bagnara authored
llvm-svn: 141171
-
John McCall authored
C-style and functional casts are built in SemaCXXCast.cpp. Introduce a helper class to encapsulate most of the random state being passed around, at least one level down. llvm-svn: 141170
-
Chandler Carruth authored
have noticed this previously, sorry. llvm-svn: 141167
-
Eric Christopher authored
llvm-svn: 141165
-
Chandler Carruth authored
"versions". Currently, these are just dropped on the floor, A concrete version number will always win out. llvm-svn: 141159
-
Chandler Carruth authored
this saga. Teach the driver to detect a GCC installed along side Clang using the existing InstalledDir support in the Clang driver. This makes a lot of Clang's behavior more automatic when it is installed along side GCC. Also include the first test cases (more to come, honest) which test both the install directory behavior, and the version sorting behavior to show that we're actually searching for the best candidate GCC installation now. llvm-svn: 141145
-
Fariborz Jahanian authored
return to one which does not return (has noreturn attribute) should warn as it is an unsafe assignment. // rdar://10095762 c++ already handles this. This is the c version. llvm-svn: 141141
-
Douglas Gregor authored
conversion function whose result type is an lvalue reference. The initialization code already handled this properly, but overload resolution was allowing the binding. Fixes PR11003 / <rdar://problem/10233078>. llvm-svn: 141137
-
Anna Zaks authored
[analyzer] Removing more references to CheckerContext::getNodeBuilder(): ask CheckerContext to generate the nodes. llvm-svn: 141136
-
Chandler Carruth authored
function, cleaning up along the way. llvm-svn: 141134
-
Anna Zaks authored
llvm-svn: 141133
-
Chandler Carruth authored
change. llvm-svn: 141131
-
Chad Rosier authored
was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. llvm-svn: 141127
-
Chandler Carruth authored
There should be a better solution to this; Michael and I are continuing to discuss exactly what it should be. The one solution I'm very uncomfortable with is making the FileCheck tests use a regex for each path separator. llvm-svn: 141126
-
- Oct 04, 2011
-
-
Chandler Carruth authored
installations, support them when installed directly under the system root ('/lib/gcc/...' essentially). With this, Clang can correctly detect and use a cross-compiling GCC installation within a system root and use it. Again, test cases will be coming in later commits, as I'm going to write a few test cases that exercise nearly all of this logic. llvm-svn: 141121
-
Chandler Carruth authored
two fundamental changes, as they ended up being interrelated. The first is to walk from the root down through the filesystem so that we prune subtrees which do not exist early. This greatly reduces the filesystem traffic of this routine. We store the "best" GCC version we encounter, and look at all of the GCC installations available. Also, we look through GCC versions by scanning the directory rather than using a hard-coded list of versions. This has several benefits. It makes it much more efficient to locate a GCC installation even in the presence of a large number of different options by simply reading the directory once. It also future-proofs us as new GCC versions are released and installed. We no longer have a hard coded list of version numbers, and won't need to manually updated it. We can still filter out known-bad versions as needed. Currently I've left in filtering for all GCC installations prior to 4.1.1, as that was the first one supported previously. llvm-svn: 141120
-
Daniel Dunbar authored
the command line options (at least according to GCC's documentation). GCC 4.2 didn't appear to actually do this, but it seems like that has been fixed in later release, so we will follow the docs. llvm-svn: 141119
-
Anna Zaks authored
[analyzer] Removing references to CheckerContext::getNodeBuilder(): checkers can obtain block count directly from the Context. llvm-svn: 141112
-
Eli Friedman authored
Remove a nonsensical bit of code from InitListChecker::getStructuredSubobjectInit which was increasing the reserved size for an init list past its maximum possible size. Fixes PR11056, a case where we were reserving a bunch of memory for arrays that was never actually used. (No testcase because I don't think we have any way to actually write a testcase for this; the chosen value of NumElements has no effects on anything other than performance and memory usage.) llvm-svn: 141106
-
Fariborz Jahanian authored
continuation class into warning. // rdar://10231514 llvm-svn: 141100
-
Anna Zaks authored
llvm-svn: 141098
-
-