- Feb 18, 2009
-
-
Daniel Dunbar authored
llvm-svn: 64969
-
Chris Lattner authored
llvm-svn: 64968
-
Daniel Dunbar authored
We are down to only failing gcc.dg/compat/vector-[12] (8 tests total). llvm-svn: 64967
-
Chris Lattner authored
llvm-svn: 64966
-
Douglas Gregor authored
llvm-svn: 64965
-
Douglas Gregor authored
C*. They're required errors in C++. llvm-svn: 64964
-
Daniel Dunbar authored
Two more gcc/x86_64 failures down. llvm-svn: 64963
-
Ted Kremenek authored
llvm-svn: 64962
-
Chris Lattner authored
llvm-svn: 64961
-
Ted Kremenek authored
llvm-svn: 64960
-
Ted Kremenek authored
llvm-svn: 64959
-
Daniel Dunbar authored
things passed in mixed registers. This knocks out 8 x86_64 failures. llvm-svn: 64958
-
Douglas Gregor authored
llvm-svn: 64957
-
Ted Kremenek authored
semantics of CFMakeCollectable and friends. llvm-svn: 64956
-
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
-
Fariborz Jahanian authored
ir gen. llvm-svn: 64954
-
Mike Stump authored
llvm-svn: 64951
-
Ted Kremenek authored
llvm-svn: 64950
-
Daniel Dunbar authored
This knocks out another 8 gcc/compat/i386 & x86_64 failures. llvm-svn: 64947
-
Daniel Dunbar authored
llvm-svn: 64946
-
Daniel Dunbar authored
llvm-svn: 64944
-
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
llvm-svn: 64939
-
Ted Kremenek authored
retain/releases performed via [... release] and CFRetain(). The former are no-ops in GC. The checker already handled this, but now we emit nice diagnostics to the user telling them that these are no-ops. llvm-svn: 64937
-
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
-
Chris Lattner authored
llvm-svn: 64934
-
Chris Lattner authored
it needs cleaning. llvm-svn: 64932
-
Chris Lattner authored
and escaped newlines don't throw off the offset computation. On this testcase: printf("abc\ def" "%*d", (unsigned) 1, 1); Before: t.m:5:5: warning: field width should have type 'int', but argument has type 'unsigned int' def" ^ after: t.m:6:12: warning: field width should have type 'int', but argument has type 'unsigned int' "%*d", (unsigned) 1, 1); ^ ~~~~~~~~~~~~ llvm-svn: 64930
-
Chris Lattner authored
llvm-svn: 64929
-
Chris Lattner authored
llvm-svn: 64928
-
Fariborz Jahanian authored
llvm-svn: 64927
-
Fariborz Jahanian authored
This make warn-weak-field.m to fail (subject of a followup patch). attr-objc-gc.m no passes. llvm-svn: 64925
-
Chris Lattner authored
First step, handle diagnostics in StringLiteral's that are due to token pasting. For example, we now handle: id str2 = @"foo" "bar" @"baz" " b\0larg"; // expected-warning {{literal contains NUL character}} Correctly: test/SemaObjC/exprs.m:17:15: warning: CFString literal contains NUL character " b\0larg"; // expected-warning {{literal contains NUL character}} ~~~^~~~~~~ There are several other related issues still to be done. llvm-svn: 64924
-
Douglas Gregor authored
us whether there was an error in trying to parse a type-name (type-id in C++). This allows propagation of errors further in the compiler, suppressing more bogus error messages. llvm-svn: 64922
-
Ted Kremenek authored
Revise comment. Comparing pointer values in 'Range' wasn't the performance issue I thought it was, but it is still worth ordering Range objects by their APSInt values. llvm-svn: 64921
-
Douglas Gregor authored
Add an unavailable __tg_promote function to attract incorrect uses of type-generic macros, rom Howard Hinnant. llvm-svn: 64919
-
Chris Lattner authored
llvm-svn: 64903
-
Douglas Gregor authored
any named parameters, e.g., this is accepted in C: void f(...) __attribute__((overloadable)); although this would be rejected: void f(...); To do this, moved the checking of the "ellipsis without any named arguments" condition from the parser into Sema (where it belongs anyway). llvm-svn: 64902
-