diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-06-15 00:54:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-06-15 00:54:52 +0000 |
commit | fa821380182f00eddfa536280b5a103c59e5c1c4 (patch) | |
tree | 65f12f40281156d8e9c162498bf579894d9aff85 /lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp | |
parent | 741be6a49f7a892ef8de6d8a499fdf45a7d57654 (diff) |
Sema: show shift result in hexadecimal
Change the output for -Wshift-overflow and
-Wshift-sign-overflow to an unsigned hexadecimal. It makes
more sense for looking at bits than a signed decimal does.
Also, change the diagnostic's wording from "overrides"
to "sets".
This uses a new optional argument in APInt::toString()
that adds the '0x' prefix to hexademical numbers.
This fixes PR 9651.
Patch by nobled@dreamwidth.org!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp')
0 files changed, 0 insertions, 0 deletions