C++: Autoformat.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-03-13 15:41:17 +01:00
parent 00450d10bb
commit a5051655a1
2 changed files with 8 additions and 4 deletions

View File

@@ -190,7 +190,8 @@ abstract class Indirection extends Type {
predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) { none() } predicate isAdditionalConversionFlow(Operand opFrom, Instruction instrTo) { none() }
} }
private class PointerOrArrayOrReferenceTypeIndirection extends Indirection instanceof PointerOrArrayOrReferenceType { private class PointerOrArrayOrReferenceTypeIndirection extends Indirection instanceof PointerOrArrayOrReferenceType
{
PointerOrArrayOrReferenceTypeIndirection() { PointerOrArrayOrReferenceTypeIndirection() {
baseType = PointerOrArrayOrReferenceType.super.getBaseType() baseType = PointerOrArrayOrReferenceType.super.getBaseType()
} }
@@ -473,11 +474,13 @@ abstract class BaseSourceVariableInstruction extends Instruction {
} }
private class BaseIRVariableInstruction extends BaseSourceVariableInstruction, private class BaseIRVariableInstruction extends BaseSourceVariableInstruction,
VariableAddressInstruction { VariableAddressInstruction
{
override BaseIRVariable getBaseSourceVariable() { result.getIRVariable() = this.getIRVariable() } override BaseIRVariable getBaseSourceVariable() { result.getIRVariable() = this.getIRVariable() }
} }
private class BaseAllocationInstruction extends BaseSourceVariableInstruction, AllocationInstruction { private class BaseAllocationInstruction extends BaseSourceVariableInstruction, AllocationInstruction
{
override BaseCallVariable getBaseSourceVariable() { result.getCallInstruction() = this } override BaseCallVariable getBaseSourceVariable() { result.getCallInstruction() = this }
} }

View File

@@ -289,7 +289,8 @@ module FiletimeYearArithmeticOperationCheckFlow =
/** /**
* Taint configuration for finding an operation with hardcoded 365 that will flow into any known date/time field. * Taint configuration for finding an operation with hardcoded 365 that will flow into any known date/time field.
*/ */
deprecated class PossibleYearArithmeticOperationCheckConfiguration extends TaintTracking::Configuration { deprecated class PossibleYearArithmeticOperationCheckConfiguration extends TaintTracking::Configuration
{
PossibleYearArithmeticOperationCheckConfiguration() { PossibleYearArithmeticOperationCheckConfiguration() {
this = "PossibleYearArithmeticOperationCheckConfiguration" this = "PossibleYearArithmeticOperationCheckConfiguration"
} }