- Feb 22, 2009
-
-
Anders Carlsson authored
llvm-svn: 65256
-
- Feb 21, 2009
-
-
Steve Naroff authored
This is necessary 'plumbing' to fix <rdar://problem/6497631> Message lookup is sometimes different than gcc's. llvm-svn: 65248
-
Steve Naroff authored
Found while researching <rdar://problem/6497631> Message lookup is sometimes different than gcc's. Will never be seen in user code. Needed to pass dejagnu testsuite. llvm-svn: 65244
-
Steve Naroff authored
llvm-svn: 65241
-
Fariborz Jahanian authored
variable (objc2 gc specific). llvm-svn: 65240
-
Steve Naroff authored
This fixes <rdar://problem/6497650> More type mismatches issues with clang. Move two key ObjC typechecks from Sema::CheckPointerTypesForAssignment() to ASTContext::mergeTypes(). This allows us to take advantage of the recursion in ASTContext::mergeTypes(), removing some bogus warnings. This test case I've added includes an example where we still warn (and GCC doesn't). Need to talk with folks and decide what to do. At this point, the major bogosities should be fixed. llvm-svn: 65231
-
Eli Friedman authored
pointer types. llvm-svn: 65210
-
Eli Friedman authored
llvm-svn: 65208
-
- Feb 20, 2009
-
-
-
Chris Lattner authored
llvm-svn: 65170
-
Chris Lattner authored
llvm-svn: 65169
-
Chris Lattner authored
but don't start using it yet. Renamed some methods to be more consistent. llvm-svn: 65168
-
Chris Lattner authored
it from being leaked, among other things. llvm-svn: 65150
-
Anders Carlsson authored
Always try to fold array sizes, and warn if we could fold something that isn't an ICE. This makes us compatible with GCC. llvm-svn: 65140
-
Chris Lattner authored
interfaces more consistently. llvm-svn: 65138
-
-
Eli Friedman authored
This prevents emitting diagnostics which are almost certainly useless. (Note that the test is checking that we emit only one diagnostic.) llvm-svn: 65101
-
Chris Lattner authored
use Blocks for our callbacks ;-) llvm-svn: 65083
-
Chris Lattner authored
information about types. We often print diagnostics where we say "foo_t" is bad, but the user doesn't know how foo_t is declared (because it is a typedef). Fix this by expanding sugar when present in a diagnostic (and not one of a few special cases, like vectors). Before: t.m:5:2: error: invalid operands to binary expression ('typeof(P)' and 'typeof(F)') MAX(P, F); ^~~~~~~~~ t.m:1:78: note: instantiated from: #define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; }) ^ After: t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float')) MAX(P, F); ^~~~~~~~~ t.m:1:78: note: instantiated from: #define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; }) ^ llvm-svn: 65081
-
Chris Lattner authored
llvm-svn: 65076
-
- Feb 19, 2009
-
-
Mike Stump authored
appear to be constant. I'll probably redo this and throw it all away later once we have codegen for BlockDeclRefExprs. llvm-svn: 65070
-
Daniel Dunbar authored
- <rdar://problem/6094103> sema fails to promote type arguments to __builtin_isgreater (and friends) llvm-svn: 65059
-
Anders Carlsson authored
llvm-svn: 65055
-
Anders Carlsson authored
llvm-svn: 65023
-
Chris Lattner authored
llvm-svn: 65006
-
Mike Stump authored
llvm-svn: 65000
-
Mike Stump authored
llvm-svn: 64998
-
Douglas Gregor authored
llvm-svn: 64993
-
Fariborz Jahanian authored
No change in functionality. llvm-svn: 64989
-
Chris Lattner authored
llvm-svn: 64975
-
- Feb 18, 2009
-
-
Chris Lattner authored
llvm-svn: 64972
-
Douglas Gregor authored
C*. They're required errors in C++. llvm-svn: 64964
-
Chris Lattner authored
llvm-svn: 64961
-
Douglas Gregor authored
llvm-svn: 64957
-
Douglas Gregor authored
(as GCC does), except when we've performed overload resolution and found an unavailable function: in this case, we actually error. Merge the checking of unavailable functions with the checking for deprecated functions. This unifies a bit of code, and makes sure that we're checking for unavailable functions in the right places. Also, this check can cause an error. We may, eventually, want an option to make "unavailable" warnings into errors. Implement much of the logic needed for C++0x deleted functions, which are effectively the same as "unavailable" functions (but always cause an error when referenced). However, we don't have the syntax to specify deleted functions yet :) llvm-svn: 64955
-
Daniel Dunbar authored
This knocks out another 8 gcc/compat/i386 & x86_64 failures. llvm-svn: 64947
-
Chris Lattner authored
we used to not account for escapes in strings with string concat. Before: t.m:5:20: warning: field width should have type 'int', but argument has type 'unsigned int' printf("\n\n" "\n\n%*d", (unsigned) 1, 1); ^ ~~~~~~~~~~~~ after: t.m:5:23: warning: field width should have type 'int', but argument has type 'unsigned int' printf("\n\n" "\n\n%*d", (unsigned) 1, 1); ^ ~~~~~~~~~~~~ llvm-svn: 64941
-
Chris Lattner authored
escapes in the string for subtoken positioning. This gives us working examples like: t.m:5:16: warning: field width should have type 'int', but argument has type 'unsigned int' printf("\n\n%*d", (unsigned) 1, 1); ^ ~~~~~~~~~~~~ where before the caret pointed two spaces to the left. llvm-svn: 64940
-
Chris Lattner authored
We now emit: t.m:6:15: warning: field width should have type 'int', but argument has type 'unsigned int' printf(STR, (unsigned) 1, 1); ^ ~~~~~~~~~~~~ t.m:3:18: note: instantiated from: #define STR "abc%*ddef" ^ which has the correct location in the string literal in the note line. llvm-svn: 64936
-
Fariborz Jahanian authored
objc gc type attributes. llvm-svn: 64935
-