- Feb 02, 2008
-
-
Steve Naroff authored
Cleanup previous patch (based on feedback from Ted). Since this behavior is useful for most classes, we might consider adding a simple 3 method class that implements the behavior. Ted said that Boost has such a class. llvm-svn: 46654
-
Steve Naroff authored
Make sure SourceManager/HeaderSearch don't support default copy constructors (since they result in bad runtime behavior). I'm sure there are other classes that might need this "guard", however I was bitten by these 2 recently (so I thought I'd fix them). llvm-svn: 46653
-
Anders Carlsson authored
llvm-svn: 46652
-
Anders Carlsson authored
llvm-svn: 46651
-
- Feb 01, 2008
-
-
Steve Naroff authored
Rename diagnostic to reflect it's role... llvm-svn: 46650
-
Steve Naroff authored
Minor API cleanup... llvm-svn: 46649
-
Steve Naroff authored
Remove temporary workaround (thanks to Ted for fixing ObjCAtCatchStmt so quickly:-). llvm-svn: 46648
-
Ted Kremenek authored
and put the the next ObjcAtCatchStmt* as part of SubExprs. This fixes a bug with iterating over the children of ObjcAtCatch, where the next @catch was not properly being iterated over as a child. Altered serialization of ObjCAtCatchStmt to reflect this new layout of its subexpressions, and fixed an ownership issue with the next @catch not being serialized as an owned pointer. llvm-svn: 46647
-
Steve Naroff authored
Fix two rewriter bugs with @catch. - Support @catch(...), rather than crash:-) - Make sure all catch bodies get rewritten. This "fix" is really a workaround until the iterator for the "try" AST is fixed. Will fix this in a separate commit. llvm-svn: 46644
-
Ted Kremenek authored
llvm-svn: 46640
-
Anders Carlsson authored
llvm-svn: 46639
-
Anders Carlsson authored
llvm-svn: 46638
-
Anders Carlsson authored
It is allowed to get the address of an array subscript, even if the array has the register qualifier, if the array is really a pointer. llvm-svn: 46634
-
Chris Lattner authored
Fix Sema::ActOnInstanceMessage to correctly do things in terms of canonical types, fixing bogus errors like: NSDistantObject.m:10383:120: error: bad receiver type 'typeof((id<NSMutableCopying>)self)' id mess = ({ id __inv__ = ((void *)0); id __mb__ = _NSMessageBuilder((id <NSMutableCopying>)self, &__inv__); (void)[(__typeof__((id <NSMutableCopying>)self))__mb__ mutableCopyWithZone:((void *)0)]; if (!objc_collecting_enabled()) object_dispose(__mb__); __inv__; }); llvm-svn: 46633
-
Chris Lattner authored
here I fix just one. The loop that rips through pointers should use getAsPointerType() not static_cast<PointerType*> to get the pointee. This fixes a crash on a large testcase. llvm-svn: 46632
-
Ted Kremenek authored
llvm-svn: 46631
-
Ted Kremenek authored
Implemented '==' and '!=' for ConcreteIntLValue. llvm-svn: 46630
-
Chris Lattner authored
llvm-svn: 46629
-
Anders Carlsson authored
llvm-svn: 46627
-
Anders Carlsson authored
llvm-svn: 46626
-
- Jan 31, 2008
-
-
Ted Kremenek authored
llvm-svn: 46624
-
Chris Lattner authored
rewriter more robust. llvm-svn: 46622
-
Chris Lattner authored
fixes crashes where the insertion point was in a macro. Instead of crashing, we want to emit a warning. llvm-svn: 46621
-
Chris Lattner authored
llvm-svn: 46620
-
Chris Lattner authored
Add a RewriteTest::ReplaceStmt method to factor the 'checking for rewrite failed + emitting diagnostic if so' code. llvm-svn: 46619
-
Ted Kremenek authored
Moved ValueKey/ValueMap declaration to ValueState.h. llvm-svn: 46618
-
Steve Naroff authored
Fix http://llvm.org/bugs/show_bug.cgi?id=1967. llvm-svn: 46616
-
Lauro Ramos Venancio authored
llvm-svn: 46613
-
Ted Kremenek authored
llvm-svn: 46604
-
Chris Lattner authored
type specifiers. This required updating some (buggy) tests, and the testcase was previously accidentally committed. llvm-svn: 46603
-
Chris Lattner authored
llvm-svn: 46602
-
Nate Begeman authored
llvm-svn: 46601
-
Chris Lattner authored
rewritten, as in Sema/rewrite-foreach-6.m. Fariborz/Steve, please review this to see if it is sane. llvm-svn: 46600
-
Chris Lattner authored
llvm-svn: 46599
-
Ted Kremenek authored
(local) aliasing support. Modified ExplodedGraph pretty-printer (for GRConstants) to also print out the pointer value of the state associated with a node. This way one can easily see that two states are identical. llvm-svn: 46595
-
Anders Carlsson authored
llvm-svn: 46594
-
Steve Naroff authored
Add support for CallExpr::isBuiltinConstantExpr(). For now, this hook is used to support CFConstantStrings. Can be extended to support other built-in functions. This allows the following code to compile without error... #include <CoreFoundation/CoreFoundation.h> #define CONST_STRING_DECL(S, V) const CFStringRef S = (const CFStringRef)__builtin___CFStringMakeConstantString(V); CONST_STRING_DECL(kCFTimeZoneSystemTimeZoneDidChangeNotification, "kCFTimeZoneSystemTimeZoneDidChangeNotification") llvm-svn: 46592
-
Ted Kremenek authored
Improved pretty-printing of LValues. Parameters whose values are pointers/references are now assigned SymbolicLValues. llvm-svn: 46584
-
Steve Naroff authored
Hack Sema::MergeTypeDefDecl() to silently ignore duplicate typedef's in system headers files. A bizarre, non-standard hook that many compilers appear to implement (sigh:-). llvm-svn: 46583
-
Ted Kremenek authored
worklist until the dstor of GRBranchNodeBuilderImpl. This way clients can mark creates nodes as "sinks" before they are added to the worklist. llvm-svn: 46582
-