]> granicus.if.org Git - clang/commit
Rename CanFitInto64Bits to alwaysFitsInto64Bits per discussion on IRC.
authorJordan Rose <jordan_rose@apple.com>
Tue, 25 Sep 2012 22:32:51 +0000 (22:32 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 25 Sep 2012 22:32:51 +0000 (22:32 +0000)
commit2fd6956fd3020cdaf7452ee68435376125c60355
tree86e1af961a503239a497bea7babbc3d11171eda5
parent80ecf5e66738a7058da58489ca55200212f3d42c
Rename CanFitInto64Bits to alwaysFitsInto64Bits per discussion on IRC.

This makes the behavior clearer concerning literals with the maximum
number of digits. For a 32-bit example, 4,000,000,000 is a valid uint32_t,
but 5,000,000,000 is not, so we'd have to count 10-digit decimal numbers
as "unsafe" (meaning we have to check for overflow when parsing them,
just as we would for numbers with 11 digits or higher). This is the same,
only with 64 bits to play with.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164639 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/LiteralSupport.cpp