| commit | 1fa36b7cabfa24ec4f61e2fb3807af3891dc9ee4 | [log] [tgz] |
|---|---|---|
| author | John McCall <rjmccall@apple.com> | Thu Nov 05 09:23:39 2009 +0000 |
| committer | John McCall <rjmccall@apple.com> | Thu Nov 05 09:23:39 2009 +0000 |
| tree | 9f98284ebc313a2b081c8eb18d794dab954ceba2 | |
| parent | c92ff053e9e5997d385182d509288cea438f969f [diff] |
Implement the conditional-operator part of -Wsign-compare. Turn DiagnoseSignCompare into Sema::CheckSignCompare and call it from more places. Add some enumerator tests. These seem to expose some oddities in the types we're converting C++ enumerators to; in particular, they're converting to unsigned before int, which seems to contradict 4.5 [conv.prom] p2. Note to self: stop baiting Doug in my commit messages. llvm-svn: 86128