- Nov 12, 2007
-
-
Steve Naroff authored
Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false. llvm-svn: 44023
-
Steve Naroff authored
Add an error diagnostic to Parse::ParseObjCMessageExpression(). This now exposes the following bug... ******************** TEST 'Sema/message.m' FAILED! ******************** Command: clang -fsyntax-only -verify Sema/message.m Output: Errors seen but not expected: Line 9: invalid receiver to message expression ******************** TEST 'Sema/message.m' FAILED! ******************** As far as I can tell, all messages to method agruments fail. The method arguments are built by Sema::ObjcActOnStartOfMethodDef(). llvm-svn: 44022
-
Ted Kremenek authored
clients of the Deserializer to read the pointer ID before they are ready to deserialize the object (which can mean registering a pointer reference with the backpatcher). Changed some methods that took an argument "SerializedPtrID" to "const SerializedPtrID&" (pass-by-reference). This is to accommodate a future revision of SerializedPtrID where it may be much fatter than an unsigned integer. llvm-svn: 44021
-
Ted Kremenek authored
directMaterialize to CreateImpl. llvm-svn: 44020
-
Owen Anderson authored
llvm-svn: 44019
-
Steve Naroff authored
Now that we can refer to instance variables, make sure they are considered lvalues. llvm-svn: 44017
-
Steve Naroff authored
Implement instance variable references. llvm-svn: 44016
-
Steve Naroff authored
- Minor cleanup to yesterday's changes to Sema::ObjcActOnStartOfMethodDef(); - Add Sema::CurMethodDecl, in preparation for adding ObjcIvarRefExpr. - Add ObjcInterfaceDecl::lookupInstanceVariable(), in prep for adding ivars. - A couple renames in ObjcInterfaceDecl, while I was in the vicinity:-) llvm-svn: 44015
-
Gordon Henriksen authored
llvm-svn: 44014
-
Duncan Sands authored
llvm-svn: 44013
-
Owen Anderson authored
Target maintainers: please check that the instructions for your target are correctly marked. llvm-svn: 44012
-
Evan Cheng authored
llvm-svn: 44010
-
Steve Naroff authored
Forgot this file from my last commit... llvm-svn: 44009
-
Steve Naroff authored
Remove Action::ObjcActOnMethodDefinition(). Rationale: - It is not an "action" - it is never called by the parser. - It was only used by one method, Sema::ObjcActOnStartOfMethodDef(). As a result, the logic it embodied is now directly implemented in Sema::ObjcActOnStartOfMethodDef(). llvm-svn: 44008
-
Steve Naroff authored
Make sure @property is allowed within a category. Bug submitted by Keith Bauer. CookieJar:Desktop keith$ cat test.m #import <WebKit/WebKit.h> llvm-svn: 44007
-
Steve Naroff authored
Remove Sema::ObjcBuildMethodParameter(). Modify Sema::ParseParamDeclarator() to work for both ActOnStartOfFunctionDef() and ObjcActOnStartOfMethodDef(). llvm-svn: 44006
-
Owen Anderson authored
Could someone more familiar with machine-level stuff review this for me? llvm-svn: 44005
-
Hartmut Kaiser authored
llvm-svn: 44004
-
Owen Anderson authored
llvm-svn: 44003
-
Owen Anderson authored
to be a pass of its own. Instead, move it out into a helper method. llvm-svn: 44002
-
Owen Anderson authored
llvm-svn: 44001
-
Steve Naroff authored
Replace 2 method definition actions (ActOnFunctionDefBody, ActOnMethodDefBody) with 1 method definition action (ActOnFinishFunctionBody). I can't think of any reason that we would need two action hooks. llvm-svn: 44000
-
- Nov 11, 2007
-
-
Steve Naroff authored
Replace 3 method definition functions (ObjcParseMethodDefinition, ParseObjCInstanceMethodDefinition, ParseObjCClassMethodDefinition) with 1 method definition function (ParseObjCMethodDefinition). Less code/confusion. llvm-svn: 43999
-
Anton Korobeynikov authored
llvm-svn: 43998
-
Anton Korobeynikov authored
This makes DwarfRegNum to accept list of numbers instead. Added three different "flavours", but only slightly tested on x86-32/linux. Please check another subtargets if possible, llvm-svn: 43997
-
Steve Naroff authored
Tweak Sema::ActOnInstanceMessage() to treat the built-in "Class" type the same as "id". llvm-svn: 43996
-
Steve Naroff authored
This is the last 5% of the solution to teaching Sema::ActOnInstanceMessage() about private methods (r43989). While the diff is large, the idea is very simple. When we parse method definitions (in an @implementation), we need to add them incrementally (rather than wait until the @end). Other details... - Renamed Sema::ActOnAddMethodsToObjcDecl() to Sema::ActOnAtEnd(). The methods are now optional arguments. - Removed Parser::AllImplMethods (a nice cleanup). - Added location info to ObjcImplementationDecl (since we will need it very soon:-) - Modified message.m test to no longer allow the bogus diagnostic. llvm-svn: 43995
-
Steve Naroff authored
Make sure Sema::CheckIncrementDecrementOperand() removes typedefs when doing it's analysis. Thanks to Seo Sanghyeon for his excellent (first) bug fix! llvm-svn: 43994
-
Anton Korobeynikov authored
llvm-svn: 43993
-
Steve Naroff authored
Teach Sema::ActOnInstanceMessage() about private methods. That is, methods declared in an implementation (but not listed in the interface). This commit is only 95% of the bug fix. The last piece to this puzzle is to add the method decls to the implementation incrementally (as we encounter them). At the moment, the methods aren't added until we see an @end (which is too late). I will complete this later... llvm-svn: 43989
-
- Nov 10, 2007
-
-
Dale Johannesen authored
dealing with types whose size & alignment are different on different subtargets. Use it for x86 f80. llvm-svn: 43988
-
Fariborz Jahanian authored
llvm-svn: 43987
-
Fariborz Jahanian authored
llvm-svn: 43986
-
Steve Naroff authored
Fix a basic bug (having to do with typedefs) in Sema::UsualArithmeticConversions(). This resuled in the following crash below. Also modified the usual-float.c test case to capture this case. [steve-naroffs-imac:clang/test/Sema] snaroff% ../../../../Debug/bin/clang usual-float.c Assertion failed: (0 && "Sema::UsualArithmeticConversions(): illegal float comparison"), function UsualArithmeticConversions, file SemaExpr.cpp, line 960. 0 clang 0x001ef9b9 _ZN40_GLOBAL__N_Signals.cpp_00000000_4E6DAF8315PrintStackTraceEv + 45 1 clang 0x001efd5f _ZN40_GLOBAL__N_Signals.cpp_00000000_4E6DAF8313SignalHandlerEi + 323 2 libSystem.B.dylib 0x90c6297b _sigtramp + 43 3 ??? 0xffffffff 0x0 + 4294967295 4 libSystem.B.dylib 0x90cdb782 raise + 26 5 libSystem.B.dylib 0x90cead3f abort + 73 6 libSystem.B.dylib 0x90cdc923 __assert_rtn + 101 7 clang 0x00077316 _ZN5clang4Sema26UsualArithmeticConversionsERPNS_4ExprES3_b + 1004 8 clang 0x000803cf _ZN5clang4Sema27CheckMultiplyDivideOperandsERPNS_4ExprES3_NS_14SourceLocationEb + 181 9 clang 0x0007a8e8 _ZN5clang4Sema10ActOnBinOpENS_14SourceLocationENS_3tok9TokenKindEPvS4_ + 472 10 clang 0x000cf058 _ZN5clang6Parser26ParseRHSOfBinaryExpressionENS_6Action12ActionResultILj0EEEj + 1286 11 clang 0x000cf2de _ZN5clang6Parser25ParseAssignmentExpressionEv + 86 llvm-svn: 43985
-
Ted Kremenek authored
vector before reusing it. llvm-svn: 43984
-
Ted Kremenek authored
deserialization as a temporary location for storing serialized pointer identifiers. The definition of SerializedPtrID will likely change significantly in the future, and the current implementation caused compilation errors on some 64-bit machines. llvm-svn: 43983
-
Ted Kremenek authored
llvm-svn: 43982
-
Steve Naroff authored
Since we are all working on Leopard, change the built-in MacOS X version number (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) to target Leopard. This is only a short term solution, until the clang driver implements the "-mmacosx-version-min" flag (which will compute this value based on the target). llvm-svn: 43981
-
Fariborz Jahanian authored
llvm-svn: 43980
-
Fariborz Jahanian authored
llvm-svn: 43979
-