diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-08 18:03:17 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-08 18:03:17 +0000 |
commit | 2112190efa85f50af84a3c4efe03c5bf69247ba2 (patch) | |
tree | 7bbe32f806be3093495453ef919f722f6607b826 /include/clang/Basic/IdentifierTable.h | |
parent | adc7a739301d123914b7124e749b7ec74fa91397 (diff) | |
download | clang-2112190efa85f50af84a3c4efe03c5bf69247ba2.tar.gz clang-2112190efa85f50af84a3c4efe03c5bf69247ba2.tar.bz2 clang-2112190efa85f50af84a3c4efe03c5bf69247ba2.tar.xz |
objective-c: diagnose protocol inconsistencies in following
situation. When a class explicitly or implicitly (through inheritance)
"conformsTo" two protocols which conflict (have methods which conflict).
This patch fixes the previous patch where warnings were coming out in
non-deterministic order. This is 2nd part of // rdar://6191214.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/IdentifierTable.h')
-rw-r--r-- | include/clang/Basic/IdentifierTable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/IdentifierTable.h b/include/clang/Basic/IdentifierTable.h index 017af5caee..c9fa74ce42 100644 --- a/include/clang/Basic/IdentifierTable.h +++ b/include/clang/Basic/IdentifierTable.h @@ -557,6 +557,11 @@ public: bool operator!=(Selector RHS) const { return InfoPtr != RHS.InfoPtr; } + + bool operator < (Selector RHS) const { + return InfoPtr < RHS.InfoPtr; + } + void *getAsOpaquePtr() const { return reinterpret_cast<void*>(InfoPtr); } |