- Oct 23, 2007
-
-
Devang Patel authored
llvm-svn: 43258
-
- Oct 19, 2007
-
-
Chris Lattner authored
llvm-svn: 43188
-
Steve Naroff authored
Include a simple test case for the previous commit... llvm-svn: 43158
-
- Oct 18, 2007
-
-
Steve Naroff authored
Fix a bug in Sema::CheckConditionalOperands(). When mixing pointers and null pointer constants, we need to promote the null pointer constant (which is an integer) to the pointer type. Test case is self explanatory. This surfaced yesterday, when compiling test/Sema/cocoa.m on Leopard. Since this has nothing to do with ObjC, it's kind of bizarre this hasn't shown up before. I imagine Cocoa.h on Leopard may have changed recently? Thanks to Ted for localizing the bug and giving me a useful AST dump... llvm-svn: 43114
-
Chris Lattner authored
when comparing "float" and "const float". This "fixes" the issue, but may not be the right fix. Steve, please review. Testcase here: test/Sema/usual-float.c llvm-svn: 43113
-
Steve Naroff authored
Fix the following bug... unsigned char asso_values[] = { 34 }; int legal2() { return asso_values[0]; } The code that creates the new constant array type was operating on the original type. As a result, the constant type being generated was "unsigned char [1][]" (which is wrong). The fix is to operate on the element type - in this case, the correct type is "unsigned char [1]" I added this case to array-init.c, which clearly didn't catch this bogosity... llvm-svn: 43112
-
Chris Lattner authored
llvm-svn: 43109
-
- Oct 17, 2007
-
-
Steve Naroff authored
rename test file for builtin "id"... llvm-svn: 43082
-
Steve Naroff authored
Predefine all the ObjC goodies from <objc/objc.h>. Removed all the ObjC goodies from the respective test files. Moving forward, it will be very nice to assume these builtin! llvm-svn: 43077
-
Fariborz Jahanian authored
llvm-svn: 43075
-
Anders Carlsson authored
Generate code for static variables that don't have initializers. Also, report an error if a static initializer is not constant. llvm-svn: 43058
-
Steve Naroff authored
Add Sema::CheckMessageArgumentTypes()... llvm-svn: 43050
-
- Oct 16, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43046
-
Fariborz Jahanian authored
llvm-svn: 43038
-
Steve Naroff authored
Emit diagnostics for methods not found. llvm-svn: 43037
-
Chris Lattner authored
This fixes a bug Anders noticed. llvm-svn: 43024
-
Fariborz Jahanian authored
llvm-svn: 43022
-
- Oct 15, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 43000
-
Anders Carlsson authored
llvm-svn: 42973
-
- Oct 13, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 42938
-
Fariborz Jahanian authored
llvm-svn: 42936
-
- Oct 12, 2007
-
-
Ted Kremenek authored
printf format strings. Added type checking to see if the matching width/precision argument was of type 'int'. Thanks to Anders Carlsson for reporting this missing feature. llvm-svn: 42933
-
Fariborz Jahanian authored
ok class names and streamlined this logic to do the lookup once. llvm-svn: 42926
-
Steve Naroff authored
Replace one FIXME with another. We handle protocols just fine now. The ObjC decl will only be 0 when we have an error on the ObjC decl. I would prefer we pass in a decl that is marked as invalid. I don't think this is critical to fix now, however I'd like us to be consistent. There are currently many places that don't mark the decl as invalid (which need to be fixed)... llvm-svn: 42923
-
Anders Carlsson authored
llvm-svn: 42917
-
Fariborz Jahanian authored
and hid them. llvm-svn: 42915
-
Steve Naroff authored
Temporary fix to test case. This area is currently under construction...test case will be changing again soon. llvm-svn: 42914
-
Fariborz Jahanian authored
llvm-svn: 42883
-
- Oct 11, 2007
-
-
Fariborz Jahanian authored
an identifier statement. Fixed up pretty priting to print this type correctly. llvm-svn: 42866
-
Fariborz Jahanian authored
llvm-svn: 42856
-
Chris Lattner authored
rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
-
Steve Naroff authored
- Cache the typedef, not the type (avoids importing AST/Type.h). - Emit an error if "id" cannot be found. - Comment the routine and add a FIXME to reconsider how we emulate GCC's new fangled behavior. This isn't a priority for now, since almost no code depends on having "id" built-in. - Add a test. llvm-svn: 42845
-
- Oct 10, 2007
-
-
Steve Naroff authored
- Make sure default return/argument types (for methods) default to "id". - Cache the "id" type in Sema...initialize ObjcIdType and TUScope (oops). - Fix ActOnInstanceMessage to allow for "id" type receivers...still work to do (next). llvm-svn: 42842
-
Anders Carlsson authored
llvm-svn: 42840
-
Steve Naroff authored
Make sure methods with no return type default to "id". This fixes a crasher in Sema::MatchTwoMethodDeclarations(), identified by selector-overload.m (just added). Added Action::ActOnTranslationUnitScope() and renamed Action::PopScope to ActOnPopScope. Added a Translation Unit Scope instance variable to Sema (will be very useful to ObjC-related actions, since ObjC declarations are always file-scoped). llvm-svn: 42817
-
- Oct 09, 2007
-
-
Devang Patel authored
llvm-svn: 42811
-
Devang Patel authored
llvm-svn: 42810
-
- Oct 08, 2007
-
-
Devang Patel authored
llvm-svn: 42766
-
- Oct 05, 2007
-
-
Fariborz Jahanian authored
objective-c types. It also removes use of Scope* parameter in getObjCProtocolDecl. llvm-svn: 42649
-
Devang Patel authored
llvm-svn: 42648
-