diff options
| author | Douglas Gregor <dgregor@apple.com> | 2008-10-22 14:17:15 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2008-10-22 14:17:15 +0000 |
| commit | e1eb9d8cc4c125c20300784a7c92f5e95b44eb51 (patch) | |
| tree | 6b36a7c8347b2740e81dde033f87a6a3251886bc /clang/lib/Sema/SemaOverload.h | |
| parent | 2fbc35443d572fd1f4800f63e9d18ee566aa4a73 (diff) | |
| download | bcm5719-llvm-e1eb9d8cc4c125c20300784a7c92f5e95b44eb51.tar.gz bcm5719-llvm-e1eb9d8cc4c125c20300784a7c92f5e95b44eb51.zip | |
Implement ranking of standard conversion sequences by their qualification
conversions (e.g., comparing int* -> const int* against
int* -> const volatile int*); see C++ 13.3.3.2p3 bullet 3.
Add Sema::UnwrapSimilarPointerTypes to simplify the control flow of
IsQualificationConversion and CompareQualificationConversion (and fix
the handling of the int* -> volatile int* conversion in the former).
llvm-svn: 57978
Diffstat (limited to 'clang/lib/Sema/SemaOverload.h')
| -rw-r--r-- | clang/lib/Sema/SemaOverload.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaOverload.h b/clang/lib/Sema/SemaOverload.h index 8d7ccd2c953..f9e03aebffc 100644 --- a/clang/lib/Sema/SemaOverload.h +++ b/clang/lib/Sema/SemaOverload.h @@ -170,9 +170,9 @@ namespace clang { // sequences. Use Sema::CompareImplicitConversionSequences to // actually perform the comparison. enum CompareKind { - Better, - Indistinguishable, - Worse + Better = -1, + Indistinguishable = 0, + Worse = 1 }; void DebugPrint() const; |

