forked from qt-creator/qt-creator
Debugger: Add support for two more floating point display formats
1. The `std::hexfloat` representation produced by `std::sstream`. 2. Breaking the number into a normalized value and a integral power of 2, as does the `std::frexp()` function. M_PI looks like "0x1.921fb54442d18p+1" and "0.785398163397 * 2^2" respectively. Fixes: QTCREATORBUG-26793 Change-Id: Ib08ea9408f79201434eb75ec328b94ab933259a4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -316,7 +316,9 @@ enum DisplayFormat
|
||||
CharCodeIntegerFormat = 28, // Frontend internal only
|
||||
|
||||
CompactFloatFormat = 26, // Frontend internal only
|
||||
ScientificFloatFormat = 27 // Frontend internal only
|
||||
ScientificFloatFormat = 27, // Frontend internal only
|
||||
HexFloatFormat = 29, // Frontend internal only
|
||||
NormalizedTwoFloatFormat = 30, // Frontend internal only
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user