- Sep 21, 2009
-
-
Daniel Dunbar authored
- It isn't really clear what to do with the preprocessor here, but this is more sensible. llvm-svn: 82431
-
Daniel Dunbar authored
llvm-svn: 82430
-
- Sep 19, 2009
-
-
Ted Kremenek authored
Fix regression introduced by r82198 that caused functions/methods with invalid CFGs to get analyzed. llvm-svn: 82297
-
- Sep 18, 2009
-
-
Ted Kremenek authored
pruning of diagnostics that may be emitted multiple times. This is accomplished by adding FoldingSet profiling support to PathDiagnostic, and then having BugReporter record what diagnostics have been issued. This was motived to a serious bug introduced by moving the 'divide-by-zero' checking outside of GRExprEngine into a separate 'Checker' class. When analyzing code using the '-fobjc-gc' option, a given function would be analyzed twice, but the second time various "internal checks" would be disabled to avoid emitting multiple diagnostics (e.g., "null dereference") for the same issue. The problem is that such checks also effect path pruning and don't just emit diagnostics. This resulted in an assertion failure involving a real divide-by-zero in some analyzed code where we would get an assertion failure in APInt because the 'DivZero' check was disabled and didn't prune the logic that resulted in the divide-by-zero in the analyzer. The implemented solution is somewhat of a hack, and may not perform extremely well. This will need to be cleaned up over time. As a regression test, 'misc-ps.m' has been modified so that its tests are run using -fobjc-gc to test this diagnostic pruning behavior. llvm-svn: 82198
-
- Sep 17, 2009
-
-
Daniel Dunbar authored
PCH: When writing PCH files, tweak the predicate function deciding whether to mark a decl as "external" to be closer to reality. This still isn't perfect, but I believe it is conservatively accurate at marking decls which IRgen needs to see, while still keeping the "deserialization footprint" on Cocoa.h. llvm-svn: 82112
-
Daniel Dunbar authored
PCH: When deserializing an explicit "external definition", don't pass it to HandleTopLevelDecl -- this is already being done inside the reader. This is something of a hack, since whether the reader actually did this depends on the "isConsumerInterestedIn" predicate. I think we need to rework how this works, but I need to discuss with Doug. llvm-svn: 82111
-
- Sep 16, 2009
-
-
Mike Stump authored
llvm-svn: 82078
-
- Sep 13, 2009
-
-
Douglas Gregor authored
generated for an inline function definition, taking into account C99 and GNU inline/extern inline semantics. This solution is simpler, cleaner, and fixes PR4536. llvm-svn: 81670
-
- Sep 12, 2009
-
-
Douglas Gregor authored
llvm-svn: 81588
-
- Sep 11, 2009
-
-
Daniel Dunbar authored
llvm-svn: 81510
-
Zhongxing Xu authored
llvm-svn: 81501
-
- Sep 10, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 81462
-
Zhongxing Xu authored
local node information. llvm-svn: 81433
-
Douglas Gregor authored
such initializations properly convert constructor arguments and fill in default arguments where necessary. This also makes the ownership model more clear. llvm-svn: 81394
-
- Sep 09, 2009
-
-
Mike Stump authored
llvm-svn: 81346
-
- Sep 08, 2009
-
-
Chris Lattner authored
order because it was doing so while iterating over a densemap. There are still similar problems in other places, for example WeakUndeclaredIdentifiers is still written to the PCH file in a nondeterminstic order, and we emit warnings about #pragma weak in nondeterminstic order. llvm-svn: 81236
-
Daniel Dunbar authored
llvm-svn: 81169
-
- Sep 07, 2009
-
-
Benjamin Kramer authored
llvm-svn: 81150
-
- Sep 05, 2009
-
-
Benjamin Kramer authored
llvm-svn: 81079
-
John McCall authored
directly in the AST. The current thinking is to create these only in C++ mode for efficiency. But for now, they're not being created at all; patch to follow. This will let us do things like verify that tags match during template instantation, as well as signal that an elaborated type specifier was used for clients that actually care. Optimally, the TypeLoc hierarchy should be adjusted to carry tag location information as well. llvm-svn: 81057
-
- Sep 04, 2009
-
-
Steve Naroff authored
Implement clang_getCursor() - wired up to Argiris's work. Implement callbacks for CXCursor_ObjCProtocolRef. llvm-svn: 81004
-
- Sep 03, 2009
-
-
Daniel Dunbar authored
llvm-svn: 80933
-
Steve Naroff authored
llvm-svn: 80932
-
Douglas Gregor authored
llvm-svn: 80916
-
Daniel Dunbar authored
variables.", this is breaking x86_64-apple-darwin10 and Linux tests. llvm-svn: 80896
-
Daniel Dunbar authored
previous commit this depends on is breaking x86_64-apple-darwin10 and Linux tests. llvm-svn: 80895
-
Daniel Dunbar authored
- Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
-
Steve Naroff authored
llvm-svn: 80861
-
Steve Naroff authored
Add clang_getTranslationUnitSpelling(). llvm-svn: 80859
-
- Sep 01, 2009
-
-
Douglas Gregor authored
explicitly-specified template argument lists in member reference expressions, e.g., x->f<int>() llvm-svn: 80646
-
Douglas Gregor authored
llvm-svn: 80643
-
- Aug 28, 2009
-
-
Eli Friedman authored
llvm-svn: 80289
-
- Aug 27, 2009
-
-
Mike Stump authored
llvm-svn: 80163
-
- Aug 26, 2009
-
-
Douglas Gregor authored
llvm-svn: 80097
-
- Aug 25, 2009
-
-
Dan Gohman authored
llvm-svn: 79991
-
Zhongxing Xu authored
Now AnalysisManager is the only place we can get CodeDecl. This leads to an API change: GRState::bindExpr() now takes the CFG argument. llvm-svn: 79980
-
- Aug 24, 2009
-
-
Chris Lattner authored
by Enea Zaffanella! llvm-svn: 79924
-
Torok Edwin authored
llvm-svn: 79916
-
Daniel Dunbar authored
- There is lots of non-endian safe code in here... :/ llvm-svn: 79905
-
Daniel Dunbar authored
- Primarily to discourage clients form making decisions based on the string. llvm-svn: 79901
-