- Sep 30, 2008
-
-
rdar://problem/6247781Steve Naroff authored
Needed to make sure the relaxed type checking only applies to "readonly" properties. llvm-svn: 56838
-
-
- Sep 29, 2008
-
-
Steve Naroff authored
llvm-svn: 56800
-
Steve Naroff authored
Teach Sema::CheckAssignmentConstraints() to allow assignments between id and block pointer types (^{}). llvm-svn: 56793
-
-
-
- Sep 28, 2008
-
-
Steve Naroff authored
llvm-svn: 56775
-
rdar://problem/6252129Steve Naroff authored
Fix <rdar://problem/6252129> implementation of method in category doesn't effectively declare it for methods below. llvm-svn: 56771
-
-
Chris Lattner authored
wasn't covering checking builtins like __builtin___vsnprintf_chk) with a check that won't get out of date. llvm-svn: 56767
-
-
-
-
- Sep 26, 2008
-
-
Steve Naroff authored
This fixes <rdar://problem/6248392> clang: Error when using address of stack variable inside block. llvm-svn: 56652
-
Daniel Dunbar authored
llvm-svn: 56642
-
Daniel Dunbar authored
llvm-svn: 56640
-
Daniel Dunbar authored
llvm-svn: 56639
-
- Sep 25, 2008
-
-
Steve Naroff authored
Downgrade incompatible block pointer error to a warning (to be consistent with incompatible pointer warnings in general). llvm-svn: 56595
-
-
- Sep 23, 2008
-
-
Daniel Dunbar authored
- readonly and readwrite are mutually exclusive. - assign, copy, and retain are mutually exclusive. - copy and retain are invalid on non-object types. - Warn about using default 'assign' property on object types (attempting to follow gcc behavior). llvm-svn: 56507
-
- Sep 22, 2008
-
-
Steve Naroff authored
llvm-svn: 56438
-
- Sep 18, 2008
-
-
Steve Naroff authored
Also added a couple simple tests from the "gcc.apple" test suite. llvm-svn: 56309
-
- Sep 17, 2008
-
-
Steve Naroff authored
Block literals are now represented by the concrete BlockExpr class. This is cleanup (removes a FIXME). No functionality change. llvm-svn: 56288
-
-
Steve Naroff authored
^(expression) or ^(int arg1, float arg2)(expression) ...is no longer supported. All block literals now require a compound statement. llvm-svn: 56257
-
Steve Naroff authored
Sema::CheckReturnStackAddr(): Make sure we skip over implicit casts. Added some more test cases... llvm-svn: 56254
-
- Sep 12, 2008
-
-
Daniel Dunbar authored
- For investigating warnings in system headers / builtins. - Currently also enables the behavior that allows silent redefinition of types in system headers. Conceptually these are separate but I didn't feel it was worth two options (or changing LangOptions). llvm-svn: 56163
-
Douglas Gregor authored
Give string literals const element typesin C++, and cope with the deprecated C++ conversion from a string literal to a pointer-to-non-const-character llvm-svn: 56137
-
Daniel Dunbar authored
- Follow C99 behavior of using other operand type when one of operands is a null pointer constant. - Fix overenthusiastic devolving of any Objective-C types to id: o If either operand has an Objective-C object type then: - If both operands are interfaces and either operand can be assigned to the other, use that type as the composite type. - Otherwise, if either type is id, use id as the composite type. - Otherwise, warn about incompatible types and use id as the composite type. - Return handling of qualified idea to separate test following general pointer type checking. o Upgraded from old code to allow devolving to id (without warning, which matches GCC). - <rdar://problem/6212771> Add test case for issues fixed above, XFAIL though because it exposed a new issue in property handling. llvm-svn: 56135
-
- Sep 11, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 56096
-
Argyrios Kyrtzidis authored
llvm-svn: 56094
-
Daniel Dunbar authored
(1) Additional arguments to variadic methods should have default promotions applied. (2) Additional arguments to non-variadic methods were allowed. llvm-svn: 56084
-
Daniel Dunbar authored
no method declaration was found. - This was allowing arrays to pass "by value" among other things. Add assert in CodeGen that arguments cannot have array type. llvm-svn: 56080
-
Daniel Dunbar authored
CheckMessageArgumentTypes. - No functionality change. llvm-svn: 56079
-
- Sep 10, 2008
-
-
Steve Naroff authored
llvm-svn: 56064
-
Steve Naroff authored
llvm-svn: 56063
-
Argyrios Kyrtzidis authored
Implement Sema support for the 'condition' part of C++ selection-statements and iteration-statements (if/switch/while/for). llvm-svn: 56044
-
Argyrios Kyrtzidis authored
llvm-svn: 56042
-
- Sep 09, 2008
-
-
Argyrios Kyrtzidis authored
Make IdentifierResolver::isDeclInScope regard declarations of a parent 'control' scope as part of the current scope. The 'control' scope is the 'condition' scope of if/switch/while statements and the scope that contains the for-init-statement and 'condition' of a for statement. e.g: if (int x = 0 /*'control' scope*/) { // x will be regarded as part of this substatement scope. } else { // and as part of this substatement scope too. } llvm-svn: 56020
-
Argyrios Kyrtzidis authored
Make Sema pass the LangOptions to IdentifierResolver's constructor. llvm-svn: 56015
-