| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 44350
|
|
|
|
| |
llvm-svn: 44349
|
|
|
|
|
|
|
|
| |
missing middle expression, and fix a codegen bug where
we didn't correctly promote the condition to the right
result type. This fixes PR1824.
llvm-svn: 44322
|
|
|
|
|
|
|
|
|
| |
Moved utility functions IgnoreParen and friends to be static inline functions
defined in SemaUtil.h.
Added SemaUtil.h to Xcode project.
llvm-svn: 44312
|
|
|
|
| |
llvm-svn: 44311
|
|
|
|
| |
llvm-svn: 44297
|
|
|
|
| |
llvm-svn: 44289
|
|
|
|
|
|
| |
AsmStmt. Ted, could you please review the serialization/deserialization code?
llvm-svn: 44266
|
|
|
|
| |
llvm-svn: 44255
|
|
|
|
| |
llvm-svn: 44253
|
|
|
|
|
|
|
|
| |
works like -ast-print.
Also added a cast to be safe...
llvm-svn: 44209
|
|
|
|
|
|
|
|
| |
type.
Adding basic printing to StmtPrinter::PrintRawDecl().
llvm-svn: 44208
|
|
|
|
|
|
|
|
| |
This fixes a bug reported by Seo Sanghyeon.
This was meant to be committed yesterday, but the commit failed. doh.
llvm-svn: 44190
|
|
|
|
| |
llvm-svn: 44172
|
|
|
|
| |
llvm-svn: 44171
|
|
|
|
|
|
| |
- RewriteMessageExpr()...make implicit casts explicit with synthesizing call (removing warnings when calling objc_msgSend()).
llvm-svn: 44156
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
works fine.
@protocol CAMediaTiming
@property int beginTime;
@end
Comments in the code tell the rest of the story...
llvm-svn: 44117
|
|
|
|
|
|
|
|
|
|
|
| |
to declare a function with a typedef:
typedef int unary_int_func(int arg);
unary_int_func add_one;
This patch contributed by Seo Sanghyeon!
llvm-svn: 44100
|
|
|
|
|
|
| |
variables.
llvm-svn: 44073
|
|
|
|
| |
llvm-svn: 44069
|
|
|
|
|
|
| |
are compared against builtins such as __builtin_inf.
llvm-svn: 44058
|
|
|
|
| |
llvm-svn: 44054
|
|
|
|
| |
llvm-svn: 44047
|
|
|
|
|
|
| |
methods (declared within the implementation).
llvm-svn: 44041
|
|
|
|
| |
llvm-svn: 44038
|
|
|
|
|
|
| |
unqualified type.
llvm-svn: 44036
|
|
|
|
| |
llvm-svn: 44028
|
|
|
|
|
|
| |
for class implementations).
llvm-svn: 44027
|
|
|
|
| |
llvm-svn: 44026
|
|
|
|
| |
llvm-svn: 44025
|
|
|
|
|
|
| |
InvalidType field to false.
llvm-svn: 44023
|
|
|
|
| |
llvm-svn: 44016
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
Bug submitted by Keith Bauer.
CookieJar:Desktop keith$ cat test.m
#import <WebKit/WebKit.h>
llvm-svn: 44007
|
|
|
|
|
|
| |
Modify Sema::ParseParamDeclarator() to work for both ActOnStartOfFunctionDef() and ObjcActOnStartOfMethodDef().
llvm-svn: 44006
|
|
|
|
|
|
| |
ActOnMethodDefBody) with 1 method definition action (ActOnFinishFunctionBody). I can't think of any reason that we would need two action hooks.
llvm-svn: 44000
|
|
|
|
|
|
| |
same as "id".
llvm-svn: 43996
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
it's analysis.
Thanks to Seo Sanghyeon for his excellent (first) bug fix!
llvm-svn: 43994
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 43987
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 43980
|
|
|
|
| |
llvm-svn: 43979
|
|
|
|
|
|
| |
process method definitions.
llvm-svn: 43967
|
|
|
|
|
|
| |
to 'self' method of instance methods.
llvm-svn: 43957
|
|
|
|
| |
llvm-svn: 43948
|
|
|
|
| |
llvm-svn: 43915
|
|
|
|
| |
llvm-svn: 43802
|