mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C++/C#: Fix formatting
This commit is contained in:
@@ -204,11 +204,9 @@ string bitsToBytesAndBits(IntValue bits) {
|
||||
hasValue(bits) and
|
||||
bytes = bits / 8 and
|
||||
leftoverBits = bits % 8 and
|
||||
if leftoverBits = 0 then
|
||||
result = bytes.toString()
|
||||
else
|
||||
result = bytes + ":" + leftoverBits
|
||||
) or
|
||||
if leftoverBits = 0 then result = bytes.toString() else result = bytes + ":" + leftoverBits
|
||||
)
|
||||
or
|
||||
not hasValue(bits) and result = "?"
|
||||
}
|
||||
|
||||
@@ -217,11 +215,10 @@ string bitsToBytesAndBits(IntValue bits) {
|
||||
*/
|
||||
bindingset[bitOffset]
|
||||
string getBitOffsetString(IntValue bitOffset) {
|
||||
if hasValue(bitOffset) then
|
||||
if bitOffset >= 0 then
|
||||
result = "+" + bitsToBytesAndBits(bitOffset)
|
||||
else
|
||||
result = "-" + bitsToBytesAndBits(neg(bitOffset))
|
||||
else
|
||||
result = "+?"
|
||||
if hasValue(bitOffset)
|
||||
then
|
||||
if bitOffset >= 0
|
||||
then result = "+" + bitsToBytesAndBits(bitOffset)
|
||||
else result = "-" + bitsToBytesAndBits(neg(bitOffset))
|
||||
else result = "+?"
|
||||
}
|
||||
|
||||
@@ -204,11 +204,9 @@ string bitsToBytesAndBits(IntValue bits) {
|
||||
hasValue(bits) and
|
||||
bytes = bits / 8 and
|
||||
leftoverBits = bits % 8 and
|
||||
if leftoverBits = 0 then
|
||||
result = bytes.toString()
|
||||
else
|
||||
result = bytes + ":" + leftoverBits
|
||||
) or
|
||||
if leftoverBits = 0 then result = bytes.toString() else result = bytes + ":" + leftoverBits
|
||||
)
|
||||
or
|
||||
not hasValue(bits) and result = "?"
|
||||
}
|
||||
|
||||
@@ -217,11 +215,10 @@ string bitsToBytesAndBits(IntValue bits) {
|
||||
*/
|
||||
bindingset[bitOffset]
|
||||
string getBitOffsetString(IntValue bitOffset) {
|
||||
if hasValue(bitOffset) then
|
||||
if bitOffset >= 0 then
|
||||
result = "+" + bitsToBytesAndBits(bitOffset)
|
||||
else
|
||||
result = "-" + bitsToBytesAndBits(neg(bitOffset))
|
||||
else
|
||||
result = "+?"
|
||||
if hasValue(bitOffset)
|
||||
then
|
||||
if bitOffset >= 0
|
||||
then result = "+" + bitsToBytesAndBits(bitOffset)
|
||||
else result = "-" + bitsToBytesAndBits(neg(bitOffset))
|
||||
else result = "+?"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user