summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* During interface layout, don't forget super class.Devang Patel2008-06-061-1/+9
| | | | llvm-svn: 52033
* Oops...remove weird printf:-)Steve Naroff2008-06-051-1/+0
| | | | llvm-svn: 52025
* Second half of "fix" for <rdar://problem/5986085> clang on xcode: error: ↵Steve Naroff2008-06-052-3/+13
| | | | | | redefinition of 'XCElementToggler' as different kind of symbol llvm-svn: 52024
* super fix submitted by David Chisnall.Steve Naroff2008-06-051-1/+1
| | | | llvm-svn: 52014
* Fixed a recent test regression from last night (r51976).Steve Naroff2008-06-051-4/+4
| | | | llvm-svn: 52006
* Fix <rdar://problem/5986833> clang on xcode: incompatible type returning ↵Steve Naroff2008-06-052-4/+28
| | | | | | | | | 'void', expected 'int'. - Changed Sema::ObjCActOnStartOfMethodDef() to more accurately type "self" in factory methods. - Changed Sema::ActOnInstanceMessage() to use the new type to restrict the lookup. llvm-svn: 52005
* Fix <rdar://problem/5987482> clang on xcode: null dereference in ↵Steve Naroff2008-06-052-6/+39
| | | | | | | | Sema::ActOnMemberReferenceExpr. In addition to fixing the crasher, this commit fixes further improves property lookup (by searching protocols of qualified interfaces..."NSObject <prot>"). llvm-svn: 52001
* Emit debug information for global and static variables when -g is specified.Sanjiv Gupta2008-06-054-0/+70
| | | | llvm-svn: 51993
* Fix trivial crasher and downgrade an error to warning (to match GCC).Steve Naroff2008-06-051-2/+2
| | | | llvm-svn: 51976
* Support "<p>" as a short-hand for "id<p>". Here's a comment from GCC (the ↵Steve Naroff2008-06-051-1/+21
| | | | | | | | | | only documentation I could find on it). /* Make "<SomeProtocol>" equivalent to "id <SomeProtocol>" - nisse@lysator.liu.se. */ This commit adds the parser magic. The type associated with <p> is still incorrect. Will discuss with Chris. llvm-svn: 51972
* Fix crash identified by <rdar://problem/5986085>.Steve Naroff2008-06-041-11/+23
| | | | llvm-svn: 51969
* Add ObjCInterface layout support.Devang Patel2008-06-041-0/+43
| | | | | | Reuse RecordLayout. llvm-svn: 51968
* Refactoring. Devang Patel2008-06-041-74/+80
| | | | | | Move field layout code in a ASTRecordLayout member fn. llvm-svn: 51966
* Added fixmes.Ted Kremenek2008-06-041-0/+2
| | | | llvm-svn: 51964
* Parser::ParseObjCSynchronizedStmt() needs to Enter/Exit a decl scope.Steve Naroff2008-06-041-0/+6
| | | | llvm-svn: 51963
* Make sure the types are consistent for a void conditional. No visible Eli Friedman2008-06-041-4/+4
| | | | | | difference, but it's better to be consistent. llvm-svn: 51961
* For setting attributes, don't assume there are ParamVarDecls available, Eli Friedman2008-06-041-12/+16
| | | | | | | because trying to access non-existent ParamVarDecls can crash. Testcase from the original source for PR2414. llvm-svn: 51960
* fix crash when codegening 'cond ? lhs : call-to-void-func()'Nuno Lopes2008-06-041-1/+1
| | | | llvm-svn: 51958
* fix type of ?: operator. If one of the operator is void, the type should be ↵Nuno Lopes2008-06-041-2/+4
| | | | | | | | void as well. Please confirm this is safe llvm-svn: 51957
* Fix a gcc compatibility issue which allows more protocol-qualified id on RHS ↵Fariborz Jahanian2008-06-041-3/+12
| | | | | | | | to be assigned to less protocol qualified object on LHS. llvm-svn: 51956
* Make the width and alignment for long double consistent with the Eli Friedman2008-06-041-2/+2
| | | | | | | | | hardcoded data layout in getTargetDescription. Hopefully fixes a test failure. Of course, this should be fixed properly, but that's a bigger fix. llvm-svn: 51948
* clang fix to parallel LLVM r51928 Eli Friedman2008-06-041-1/+1
| | | | | | (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080602/063306.html). llvm-svn: 51944
* Moved LangOptions from TranslationUnit to ASTContext. This induced a ↵Ted Kremenek2008-06-043-12/+13
| | | | | | variety of cleanups in some ASTConsumers. llvm-svn: 51943
* ASTContext::typesAreCompatible(): id is compatible with all qualified id types.Steve Naroff2008-06-041-1/+10
| | | | llvm-svn: 51939
* Sema::ActOnClassMessage() needs to look through it's local implementation ↵Steve Naroff2008-06-041-0/+6
| | | | | | for private class methods. llvm-svn: 51938
* Move Decl and DeclContext implementations into a new DeclBase.cpp file.Argyrios Kyrtzidis2008-06-042-312/+326
| | | | llvm-svn: 51936
* Make sure we look through categories when searching for a classes property.Steve Naroff2008-06-041-0/+7
| | | | | | Fixes <rdar://problem/5984338> clang on xcode: property implementation must have its declaration in interface 'PBXOpenQuicklyModule' llvm-svn: 51925
* Give the "isa" slot a name!Steve Naroff2008-06-041-1/+2
| | | | llvm-svn: 51924
* Put back my temporary hack until Eli addresses this in a more complete fashion.Steve Naroff2008-06-031-0/+5
| | | | llvm-svn: 51920
* Implement another property related FIXME:Steve Naroff2008-06-031-1/+3
| | | | | | Fix <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union llvm-svn: 51919
* Re-fix r51907 in a way which doesn't affect valid code. This essentially Eli Friedman2008-06-033-8/+60
| | | | | | | | | | | | | moves the check for the invalid construct to a point where it doesn't affect other uses of isIntegerConstantExpr, and we can warn properly when the extension is used. This makes it a bit more complicated, but it's a lot cleaner. Steve, please tell me if this check is sufficient to handle the relevant system header. I know it's enough to handle the testcase, but I don't know what exactly the original looks like. llvm-svn: 51918
* Fixup recent "super" regression.Steve Naroff2008-06-031-1/+1
| | | | llvm-svn: 51913
* Change Expr::isIntegerConstantExpr() to allow for pointer types (for GCC ↵Steve Naroff2008-06-031-0/+5
| | | | | | | | compatibility). Note FIXME. Fix <rdar://problem/5977870> clang on xcode: error: arrays with static storage duration must have constant integer length llvm-svn: 51907
* Allow implicit pointer/int conversions on ObjCQualifiedIdTypes in ↵Steve Naroff2008-06-031-6/+14
| | | | | | | | Sema::CheckCompareOperands() and Sema::CheckAssignmentConstraints(). Fixes <rdar://problem/5980804> clang on xcode: error: incompatible type sending 'id<XDUMLType>', expected 'NSCellType'. llvm-svn: 51902
* Finish up r51900.Steve Naroff2008-06-031-4/+5
| | | | llvm-svn: 51901
* Allow for a GCC cast extension.Steve Naroff2008-06-031-3/+10
| | | | | | Fixes part of <rdar://problem/5980829> clang on xcode: used type 'NSRange' where arithmetic or pointer type is required. llvm-svn: 51900
* Fix parser bug/FIXME with @catch.Steve Naroff2008-06-031-7/+11
| | | | | | <rdar://problem/5980846> clang on xcode: error: declarator requires an identifier (for @catch) llvm-svn: 51895
* Fix <rdar://problem/5979875> clang on xcode: error: use of undeclared ↵Steve Naroff2008-06-024-1/+25
| | | | | | identifier 'super' llvm-svn: 51888
* handle the full assignment-expression grammar when using an Chris Lattner2008-06-022-5/+25
| | | | | | objc message send in an initializer expression. llvm-svn: 51882
* Teach the CF retain checker about "_init" methods. Fixes: ↵Ted Kremenek2008-06-021-1/+1
| | | | | | <rdar://problem/5956379> llvm-svn: 51872
* fix decl attributes cleaningNuno Lopes2008-06-012-9/+18
| | | | | | this plugs the leak of attributes and also fixes a crash in the test llvm-svn: 51862
* Include <string> header to allow compiling for MSVC.Argyrios Kyrtzidis2008-06-011-0/+1
| | | | llvm-svn: 51847
* fix PR2357 (#ifs didnt invalidate the multiple-inclusion optimization state)Nuno Lopes2008-06-011-9/+10
| | | | llvm-svn: 51843
* Don't name the ObjC types if there aren't any ObjC objects in the file. Eli Friedman2008-06-011-4/+6
| | | | | | Patch by David Chisnall. llvm-svn: 51840
* First cut at setting attributes for functions and calls; this puts us Eli Friedman2008-06-014-34/+90
| | | | | | | | | | | | | | | much closer to passing the gcc struct layout tests. It might be possible to refactor this a bit, but I'm not sure there's actually enough common code for that to be useful. To get the calling convention completely correct, a bit of platform-specific code is necessary even for x86-Linux. On x86-Linux, the alignment of function parameters is extremely strange; as far as I can tell, it's always 4 except for SSE vectors or structs containing SSE vectors. I'm continuing to investigate this. llvm-svn: 51839
* Make sure _Bool globals have the correct type.Eli Friedman2008-06-011-3/+8
| | | | llvm-svn: 51838
* Minor cleanup to use the ConvertTypeForMem helper.Eli Friedman2008-06-011-5/+3
| | | | llvm-svn: 51837
* Remove spurious == 0Anton Korobeynikov2008-06-011-1/+1
| | | | llvm-svn: 51836
* Support for code generation of Objective-C top-level language constructs.Anton Korobeynikov2008-06-018-44/+1027
| | | | | | Implemented by David Chisnall! llvm-svn: 51835
* Tweak Sema::ObjCQualifiedIdTypesAreCompatible() to handle qualified ↵Steve Naroff2008-06-011-5/+24
| | | | | | | | | | interface types on the RHS. This eliminates a bogus warning identified in the test below. This fixes <rdar://problem/5968256> clang on xcode: error: incompatible type initializing 'NSObject<XCSelectionSource> *', expected 'id<NSObject,XCSelectionSource>' llvm-svn: 51832
OpenPOWER on IntegriCloud