diff options
| author | Steve Naroff <snaroff@apple.com> | 2008-10-14 22:18:38 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2008-10-14 22:18:38 +0000 |
| commit | 8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3 (patch) | |
| tree | 49cabc587557a2ba2118fb69b2eca712809d4e2a /clang/lib/Sema/Sema.h | |
| parent | 28106756affdd568e058bb45a1009e01f6ed81e3 (diff) | |
| download | bcm5719-llvm-8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3.tar.gz bcm5719-llvm-8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3.zip | |
Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings.
Note: One day, we should consider moving the actual diags to ObjCQualifiedIdTypesAreCompatible(), since it has more information on the actual problem. GCC currently emits slightly more instructive errors for some cases involving protocols. I added a FIXME to the code.
llvm-svn: 57529
Diffstat (limited to 'clang/lib/Sema/Sema.h')
| -rw-r--r-- | clang/lib/Sema/Sema.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 313b9aa7016..e9e1ad15689 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -924,6 +924,11 @@ private: /// void*, we accept for now. BlockVoidPointer, + /// IncompatibleObjCQualifiedId - The assignment is between a qualified + /// id type and something else (that is incompatible with it). For example, + /// "id <XXX>" = "Foo *", where "Foo *" doesn't implement the XXX protocol. + IncompatibleObjCQualifiedId, + /// Incompatible - We reject this conversion outright, it is invalid to /// represent it in the AST. Incompatible |

