]> granicus.if.org Git - clang/commitdiff
add comments.
authorChris Lattner <sabre@nondot.org>
Sat, 22 Sep 2007 18:48:32 +0000 (18:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Sep 2007 18:48:32 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42237 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index 94c02aa3e99b2840bc535823f58e7cf18b14b69b..73f730ef6406329476998a976616522e4214fa6f 100644 (file)
@@ -225,7 +225,11 @@ public:
 
   const llvm::APFloat &getValue() const { return Value; }
 
-  double getValueAsDouble() const { 
+  /// getValueAsDouble - This returns the value as an inaccurate double.  Note
+  /// that this may cause loss of precision, but is useful for debugging dumps
+  /// etc.
+  double getValueAsDouble() const {
+    // FIXME: We need something for long double here.
     if (cast<BuiltinType>(getType())->getKind() == BuiltinType::Float)
       return Value.convertToFloat();
     else