- Mar 08, 2009
-
-
Chris Lattner authored
warning to only trigger when there is whitespace or something else after the + as suggested by Eli. llvm-svn: 66370
-
- Mar 07, 2009
-
-
Sebastian Redl authored
llvm-svn: 66335
-
Eli Friedman authored
difficult to come up with a testcase because the code generation for this construct is broken. llvm-svn: 66325
-
Ted Kremenek authored
llvm-svn: 66317
-
Ted Kremenek authored
llvm-svn: 66314
-
Ted Kremenek authored
- Make Selector::getAsIdentifierInfo() private. Using IdentifierInfo* in Selector is an implementation detail that clients shouldn't think about. - Modify diagnostic emission in Sema::ProcessPropertyDecl to not use Selector::getAsIdentifierInfo() (which could crash when IdentifierInfo* is null) and instead use Selector::getAsString(). - Tidy up Selector::getAsString() implementation. llvm-svn: 66313
-
Douglas Gregor authored
struct to an extension warning to match the behavior of GNU C, which addresses the Sema part of PR3671. llvm-svn: 66308
-
Douglas Gregor authored
Use the 'declaration does not declare anything' error when we see an anonymous struct/union declaration outside of a struct or union in C llvm-svn: 66303
-
- Mar 06, 2009
-
-
Douglas Gregor authored
prototype of the same function, where the promoted parameter types in the K&R definition are not compatible with the types in the prototype. Fixes PR2821. llvm-svn: 66301
-
Daniel Dunbar authored
really use pack() instead. - <rdar://problem/6650243> clang warns about '#pragma pack(0)' llvm-svn: 66287
-
Douglas Gregor authored
llvm-svn: 66286
-
Douglas Gregor authored
C and C++. Fixes PR3688. llvm-svn: 66282
-
Daniel Dunbar authored
- Also, diagnose weak applied to types. llvm-svn: 66259
-
Chris Lattner authored
SemaObjC/call-super-2.m:78:29: error: cannot cast 'super' (it isn't an expression) return [(Object <Func> *)super instance_func0]; ~~~~~~~~~~~~~~~~~^ llvm-svn: 66215
-
Chris Lattner authored
llvm-svn: 66214
-
Chris Lattner authored
llvm-svn: 66213
-
- Mar 05, 2009
-
-
Chris Lattner authored
more consistently. llvm-svn: 66210
-
rdar://problem/6301205Steve Naroff authored
Tweak Sema::ActOnMemberReferenceExpr() and Sema::ActOnDeclarationNameExpr() to handle "super." notation for Class methods. llvm-svn: 66185
-
rdar://problem/5982579Steve Naroff authored
Tweak diag for <rdar://problem/5982579> [clang on xcode] (using arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar. llvm-svn: 66162
-
-
Chris Lattner authored
like: Stack dump: 0. t.c:5:10: in compound statement ('{}') 1. t.c:3:12: in compound statement ('{}') 2. t.c:3:12: parsing function body 'foo' 3. clang t.c Abort llvm-svn: 66118
-
Fariborz Jahanian authored
llvm-svn: 66099
-
- Mar 04, 2009
-
-
Fariborz Jahanian authored
c-style functions declared inside objc @implementations. llvm-svn: 66087
-
rdar://problem/6645157Steve Naroff authored
Partial fix for <rdar://problem/6645157> [clang on Xcode; regression]: error: instance variable 'someField' is private. A recent regression caused by http://llvm.org/viewvc/llvm-project?rev=65912&view=rev. This commit isn't fully baked. Nevertheless, it should cause Xcode to compile again. Will speak with Fariborz offline. llvm-svn: 66045
-
Fariborz Jahanian authored
llvm-svn: 66041
-
Fariborz Jahanian authored
If all else failed, find the message in class's root's list of instacne methods! llvm-svn: 66040
-
rdar://problem/6497631Steve Naroff authored
Finish up some fixes related to <rdar://problem/6497631> Message lookup is sometimes different than gcc's. - Disallow casting 'super'. GCC allows this, however it doesn't make sense (super isn't an expression and the cast won't alter lookup/dispatch). - Tighten up lookup when messaging 'self'. llvm-svn: 66033
-
Eli Friedman authored
llvm-svn: 66027
-
Chris Lattner authored
decls. This reduces the number of calls to malloc on cocoa.h with pth and -disable-free from 15958 to 12444 times (down ~3500). llvm-svn: 66023
-
Chris Lattner authored
this, make DeclBase::Destroy destroy attributes instead of the DeclBase dtor. llvm-svn: 66020
-
Chris Lattner authored
llvm-svn: 66016
-
Chris Lattner authored
multiple sequential case statements instead of doing it with recursion. This fixes a problem where we run out of stack space parsing 100K directly nested cases. There are a couple other problems that prevent this from being useful in practice (right now the example only parses correctly with -disable-free and doesn't work with -emit-llvm), but this is a start. I'm not including a testcase because it is large and uninteresting for regtesting. Sebastian, I would appreciate it if you could scrutinize the smart pointer gymnastics I do. llvm-svn: 66011
-
Steve Naroff authored
llvm-svn: 65978
-
- Mar 03, 2009
-
-
Fariborz Jahanian authored
is searched for in the global pool. It already uncovered a clang bug in message selection. llvm-svn: 65974
-
rdar://problem/5982579Steve Naroff authored
Fix <rdar://problem/5982579> [clang on xcode] (using arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar. llvm-svn: 65973
-
-
-
rdar://problem/6640991Steve Naroff authored
Also necessary to fix: <rdar://problem/6632061> [sema] non object types should not be allowed in @catch statements <rdar://problem/6252237> [sema] qualified id should be disallowed in @catch statements llvm-svn: 65964
-
rdar://problem/6497242Steve Naroff authored
Change Sema::DiagnosePropertyMismatch() to check for type compatibility (rather than type equivalence, which is too strict). llvm-svn: 65949
-
-