Steve Naroff
c68cfcfd03
The "real" fix for <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes,
...
Commit r60845 was premature.
llvm-svn: 60852
2008-12-10 22:14:21 +00:00
Douglas Gregor
9aa8b55d10
Fix PR clang/3175: CheckAddressOfOperand does not handle references to class vars
...
llvm-svn: 60849
2008-12-10 21:26:49 +00:00
Douglas Gregor
872ffce257
Some cleanups to the dependent-types commit, as suggested by Sebastian
...
llvm-svn: 60848
2008-12-10 20:57:37 +00:00
Steve Naroff
13ac125edf
Fix <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes,
...
llvm-svn: 60845
2008-12-10 20:07:25 +00:00
Ted Kremenek
d40ab7b72a
Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change.
...
llvm-svn: 60843
2008-12-10 19:40:23 +00:00
Steve Naroff
68e167df8e
Fix <rdar://problem/6418623> Bogus block type compatibility warning.
...
llvm-svn: 60842
2008-12-10 17:49:55 +00:00
Steve Naroff
df70577b9c
Fix regression caused by fixing <rdar://problem/6429113> clang ObjC rewriter: crash rewriting file with Blocks and properties
...
llvm-svn: 60839
2008-12-10 14:53:27 +00:00
Douglas Gregor
7307d6ca96
Use a scoped object to manage entry/exit from a parser scope rather than explicitly calling EnterScope/ExitScope
...
llvm-svn: 60830
2008-12-10 06:34:36 +00:00
Anders Carlsson
a726c1763a
Append an extra newline to the module inline asm if it's not empty.
...
llvm-svn: 60827
2008-12-10 02:21:04 +00:00
Ted Kremenek
a30391c31f
Updated checker build.
...
llvm-svn: 60819
2008-12-10 00:50:24 +00:00
Fariborz Jahanian
7572ac5614
Patch to allow a getter call using property dot-syntax notation.
...
llvm-svn: 60816
2008-12-10 00:21:50 +00:00
Sebastian Redl
d9f7b1c230
Modify the move emulation according to the excellent design of Howard Hinnant. Makes for much nicer syntax when smart pointers are used consistently. Also, start converting internal argument passing of Parser to smart pointers.
...
llvm-svn: 60809
2008-12-10 00:02:53 +00:00
Ted Kremenek
42a217f4c0
Fix to BasicStoreManager::getElementLValue: If the base region is a symbol, layer an AnonTypedRegion on top of it.
...
llvm-svn: 60808
2008-12-09 23:50:57 +00:00
Fariborz Jahanian
ea831ee11c
Prevent bogus warning on unimplemented setter/getter when user
...
has added declaration of these methods in its @interface.
llvm-svn: 60803
2008-12-09 22:43:22 +00:00
Ted Kremenek
62cc9daae3
Have BasicStoreManager::getLValueElement() have logic similar to BasicStoreManager::getLValueField() (i.e., don't just return the 'base' as the SVal)
...
llvm-svn: 60795
2008-12-09 21:20:27 +00:00
Steve Naroff
70cb0071c9
Add testcase for commit r60781.
...
llvm-svn: 60793
2008-12-09 20:59:16 +00:00
Fariborz Jahanian
3d8552a75d
Support for implementation of property in the case where
...
the synthesis is in an implementation of s subclass of
a super class where the property has been declared.
llvm-svn: 60792
2008-12-09 20:23:04 +00:00
Sebastian Redl
c13f26873f
Kick out the proof-of-concept ASTOwner and replace it with ASTOwningResult
...
llvm-svn: 60791
2008-12-09 20:22:58 +00:00
Ted Kremenek
93041ba483
Add preliminary CFG support for @throw. We basically treat it like a return statement.
...
llvm-svn: 60790
2008-12-09 20:20:09 +00:00
Ted Kremenek
1857ff4e2c
In GRExprEngine treat @throw as an 'abort' that ends the current path. This is a temporary solution.
...
llvm-svn: 60789
2008-12-09 20:18:58 +00:00
Sebastian Redl
7379577ab0
Lay the groundwork for converting the entire parser-sema chain to smart pointers.
...
llvm-svn: 60782
2008-12-09 19:36:21 +00:00
Steve Naroff
b0498eebc2
Sema::ActOnMethodDeclaration(): Make sure we perform the default function/array conversion for parameter types.
...
This fixes <rdar://problem/6424064> checker on xcode: (possible bad AST) can the type of a method parameter really have "isFunctionType() == true"?
and http://llvm.org/bugs/show_bug.cgi?id=2997 .
llvm-svn: 60781
2008-12-09 19:36:17 +00:00
Chris Lattner
2e41b0e6e7
Fix a serious null termination bug found by David Chisnall!
...
llvm-svn: 60778
2008-12-09 19:10:54 +00:00
Sebastian Redl
e0c2affc5e
Fill in C++ status table for expressions.
...
llvm-svn: 60763
2008-12-09 14:40:01 +00:00
Sebastian Redl
17f2c7d251
Consistently use smart pointers for stmt and expr nodes in parser local variables.
...
llvm-svn: 60761
2008-12-09 13:15:23 +00:00
Steve Naroff
08628db9d2
Fix <rdar://problem/6429113> clang ObjC rewriter: crash rewriting file with Blocks and properties
...
More fancy footwork to cope with rewriting property 'setters'.
llvm-svn: 60760
2008-12-09 12:56:34 +00:00
Zhongxing Xu
2a46a8ef52
initialize member variable.
...
llvm-svn: 60759
2008-12-09 12:26:46 +00:00
Zhongxing Xu
2e8123e5bb
Add utility method. Remove an unused method.
...
llvm-svn: 60758
2008-12-09 10:51:19 +00:00
Ted Kremenek
c28ce29a12
[static analyzer] Extend VLA size checking to look for undefined sizes.
...
llvm-svn: 60734
2008-12-09 00:44:16 +00:00
Ted Kremenek
08134c984b
Update Driver to new interface for LiveVariables.
...
llvm-svn: 60732
2008-12-09 00:17:51 +00:00
Ted Kremenek
d7266bf20a
Add zero-sized VLA check test case.
...
llvm-svn: 60731
2008-12-09 00:14:48 +00:00
Ted Kremenek
6ee0a11814
Fixed LiveVariables bug where we didn't consider block-level expressions that functioned as the size of a VLA to be live.
...
llvm-svn: 60730
2008-12-09 00:14:14 +00:00
Fariborz Jahanian
8e0079c787
Change condition under which 'retain'/'copy' are directly evaluated.
...
llvm-svn: 60729
2008-12-08 23:56:17 +00:00
Ted Kremenek
8f7afdd21e
Add checking for zero-sized VLAs.
...
llvm-svn: 60726
2008-12-08 22:47:34 +00:00
Ted Kremenek
223005f35a
Incorporate MissingDealloc_IBOutlet.m test case into MissingDealloc.m
...
llvm-svn: 60722
2008-12-08 22:05:43 +00:00
Ted Kremenek
1f9dd45f57
Incorporate MissingDeallc_SEL.m test case into MissingDealloc.m
...
llvm-svn: 60721
2008-12-08 22:01:50 +00:00
Ted Kremenek
8f5c0ede0f
Add test case for <rdar://problem/6380411>.
...
llvm-svn: 60720
2008-12-08 21:59:21 +00:00
Chris Lattner
46415261ee
Fix PR3172: if we see an eof or } at the top level, reject it.
...
This is important because ParseDeclarationOrFunctionDefinition
skips to, but does not consume, an } on error.
llvm-svn: 60719
2008-12-08 21:59:01 +00:00
Chris Lattner
3a90716f6a
improve comment.
...
llvm-svn: 60718
2008-12-08 21:53:24 +00:00
Ted Kremenek
96d2eecf85
'self.myIvar = nil' (properties) only releases myIvar when the property has kind 'assign'. This fixes <rdar://problem/6380411>.
...
llvm-svn: 60717
2008-12-08 21:44:15 +00:00
Steve Naroff
5fd31b17df
ObjCInterfaceDecl::lookupInstanceMethod() needs to look through a categories protocols.
...
Fixes <rdar://problem/6418640> clang on prokit: error: incompatible type returning 'id', expected 'NSSize'
llvm-svn: 60716
2008-12-08 20:57:28 +00:00
Steve Naroff
f1ab600362
Fix a couple uninitialized variables from my previous commit.
...
llvm-svn: 60713
2008-12-08 20:01:41 +00:00
Dan Gohman
16873c6284
Remove the #include of ScheduleDAGSDNodes.h, which is no longer necessary.
...
llvm-svn: 60712
2008-12-08 19:45:33 +00:00
Fariborz Jahanian
3edadfc730
Changed 'readonly' 'retain/copy' diagnostics into
...
warning as it is allowed in gcc and will break projects.
llvm-svn: 60710
2008-12-08 19:28:10 +00:00
Fariborz Jahanian
3685995d2c
Since we do not allow a readonly property to be 'copy'retain', we
...
must allow the continuation class to extend it to a 'readwrite'
and 'copy/retain'.
llvm-svn: 60709
2008-12-08 18:47:29 +00:00
Douglas Gregor
5daeee2bd6
Move Sema::isTemplateParameterDecl to Decl::isTemplateParameter, where it belongs
...
llvm-svn: 60708
2008-12-08 18:40:42 +00:00
Steve Naroff
f122ff0cad
Fix <rdar://problem/6423452> clang ObjC rewriter: Don't use __declspec(dllimport) for Blocks functions, as they are linked statically.
...
llvm-svn: 60704
2008-12-08 17:30:33 +00:00
Steve Naroff
1042ff345a
Handle chained/nested property 'getters' (obj.p1.p2.p3).
...
This is a follow-up to fixing <rdar://problem/6213955> clang ObjC rewriter: rewriter doesn't appear to support @property and @synthesize.
llvm-svn: 60700
2008-12-08 16:43:47 +00:00
Sebastian Redl
82639aff7b
Fill in some parts of cxx_status.html
...
llvm-svn: 60699
2008-12-08 16:24:08 +00:00
Zhongxing Xu
17a37ebf32
fix 80-col violation.
...
llvm-svn: 60693
2008-12-08 07:14:51 +00:00