summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/exprs.m
Commit message (Collapse)AuthorAgeFilesLines
* Use Sema::RequireCompleteType to check for the completeness ofDouglas Gregor2011-11-141-1/+1
| | | | | | | | | | Objective-C classes. This has two purposes: to consistently provide "forward declaration here" notes when we hit an incomplete type, and to give LLDB a chance to complete the type. RequireCompleteType bits from Sean Callanan! llvm-svn: 144573
* Emit an error when trying to @encode an incomplete type.Argyrios Kyrtzidis2011-05-141-0/+10
| | | | | | | | There are APIs, e.g. [NSValue valueWithBytes:objCType:], which use the encoding to find out the size of an object pointed to by a pointer. Make things safer by making it illegal to @encode incomplete types. llvm-svn: 131364
* Remove warning for null characters in CFString literals. Clang handles them ↵Ted Kremenek2011-03-151-2/+2
| | | | | | | | just fine, and GCC 4.2 doesn't warn here either. We added this warning back in 2007 when we were comparing against GCC 4.0. llvm-svn: 127704
* fix rdar://8445858 - __sync_* intrinsics erroneously reject ObjC pointersChris Lattner2010-09-171-0/+10
| | | | llvm-svn: 114209
* Statement expressions can be used in global- or namespace-scoped blocksDouglas Gregor2010-03-101-1/+4
| | | | llvm-svn: 98135
* Insulate these from changes to the default for -Wunreachable-code.Mike Stump2010-01-231-1/+1
| | | | llvm-svn: 94326
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Change tests to use clang -cc1...Fariborz Jahanian2009-12-141-1/+1
| | | | llvm-svn: 91297
* improve the string literal comparison warning to not call @encode's "string ↵Chris Lattner2009-04-031-0/+2
| | | | | | literals". llvm-svn: 68407
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-2/+2
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Start improving diagnostics that relate to subcharacters of string literals.Chris Lattner2009-02-181-1/+13
| | | | | | | | | | | | | | | | | | | | 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
* pass -verify in exprs.m, merge const-id.m into message.mChris Lattner2009-02-181-1/+1
| | | | llvm-svn: 64886
* fix rdar://6597252: two exactly identical pointer types are alwaysChris Lattner2009-02-181-0/+7
compatible, even if they are weird implicit objc pointer types like Class. llvm-svn: 64885
OpenPOWER on IntegriCloud