summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-10-14 22:18:38 +0000
committerSteve Naroff <snaroff@apple.com>2008-10-14 22:18:38 +0000
commit8afa98916ab7bbf2a789a0f7f5c0591d43fd25b3 (patch)
tree49cabc587557a2ba2118fb69b2eca712809d4e2a /clang/lib/Sema/Sema.h
parent28106756affdd568e058bb45a1009e01f6ed81e3 (diff)
downloadbcm5719-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.h5
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
OpenPOWER on IntegriCloud