1
0
Fork 0

Run "AStyleWhore"

This commit is contained in:
torusrxxx 2018-11-13 10:01:22 +08:00
parent 5162450ff3
commit 836a544287
No known key found for this signature in database
GPG Key ID: A795C73A0F1CFADD
6 changed files with 15 additions and 15 deletions

View File

@ -25,8 +25,8 @@ duint WatchExpr::getIntValue()
{
duint origVal = currValue;
if(varType == WATCHVARTYPE::TYPE_UINT || varType == WATCHVARTYPE::TYPE_INT ||
varType == WATCHVARTYPE::TYPE_FLOAT ||
varType == WATCHVARTYPE::TYPE_ASCII || varType == WATCHVARTYPE::TYPE_UNICODE)
varType == WATCHVARTYPE::TYPE_FLOAT ||
varType == WATCHVARTYPE::TYPE_ASCII || varType == WATCHVARTYPE::TYPE_UNICODE)
{
duint val;
bool ok = expr.Calculate(val, varType == WATCHVARTYPE::TYPE_INT, false);

View File

@ -257,7 +257,7 @@ void CPUInfoBox::disasmSelectionChanged(dsint parVA)
std::sort(data.begin(), data.end(), [](const XREF_RECORD * A, const XREF_RECORD * B)
{
if (A->type != B->type)
if(A->type != B->type)
return (A->type < B->type);
return (A->addr < B->addr);

View File

@ -1672,10 +1672,10 @@ static QString composeRegTextXMM(const char* value, RegistersView::SIMD_REG_DISP
const float* flt_values = reinterpret_cast<const float*>(value);
if(bFpuRegistersLittleEndian)
valueText = ToFloatString(&flt_values[0]) + ' ' + ToFloatString(&flt_values[1]) + ' '
+ ToFloatString(&flt_values[2]) + ' ' + ToFloatString(&flt_values[3]);
+ ToFloatString(&flt_values[2]) + ' ' + ToFloatString(&flt_values[3]);
else // Big Endian
valueText = ToFloatString(&flt_values[3]) + ' ' + ToFloatString(&flt_values[2]) + ' '
+ ToFloatString(&flt_values[1]) + ' ' + ToFloatString(&flt_values[0]);
+ ToFloatString(&flt_values[1]) + ' ' + ToFloatString(&flt_values[0]);
}
break;
case RegistersView::SIMD_REG_DISP_WORD_HEX:

View File

@ -58,7 +58,7 @@ void XrefBrowseDialog::setup(duint address, QString command)
std::sort(data.begin(), data.end(), [](const XREF_RECORD A, const XREF_RECORD B)
{
if (A.type != B.type)
if(A.type != B.type)
return (A.type < B.type);
return (A.addr < B.addr);

View File

@ -111,15 +111,15 @@ void ZehSymbolTable::sortRows(int column, bool ascending)
else
return ascending ? ainfo->ordinal < binfo->ordinal : ainfo->ordinal > binfo->ordinal;
case ColDecorated:
{
int result = strcmp(ainfo->decoratedSymbol, binfo->decoratedSymbol);
return ascending ? result < 0 : result > 0;
}
{
int result = strcmp(ainfo->decoratedSymbol, binfo->decoratedSymbol);
return ascending ? result < 0 : result > 0;
}
case ColUndecorated:
{
int result = strcmp(ainfo->undecoratedSymbol, binfo->undecoratedSymbol);
return ascending ? result < 0 : result > 0;
}
{
int result = strcmp(ainfo->undecoratedSymbol, binfo->undecoratedSymbol);
return ascending ? result < 0 : result > 0;
}
}
});
}

View File

@ -873,7 +873,7 @@ void Zydis::RegInfo(uint8_t regs[ZYDIS_REGISTER_MAX_VALUE + 1]) const
{
case ZYDIS_OPERAND_TYPE_REGISTER:
{
switch (op.action)
switch(op.action)
{
case ZYDIS_OPERAND_ACTION_READ:
case ZYDIS_OPERAND_ACTION_CONDREAD: