]> granicus.if.org Git - clang/commit
Added optional pass-by-reference argument "isExact" to
authorTed Kremenek <kremenek@apple.com>
Mon, 26 Nov 2007 23:12:30 +0000 (23:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 26 Nov 2007 23:12:30 +0000 (23:12 +0000)
commit427d5af5b601985093b6b4b33ba1e30fc24d86dc
treeb382d02cf67bdbd19e755f91d2cc8d47771fa31c
parent51221ec87faa0365c9fc8c8ad7b7f2d3ee36c8ef
Added optional pass-by-reference argument "isExact" to
NumericLiteralParser::GetFloatValue(). Upon method return, this flag has the value
true if the returned APFloat can exactly represent the number in the parsed text,
and false otherwise.

Modified the implementation of GetFloatValue() to parse literals using APFloat's
convertFromString method (which allows us to set the value of isExact).

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