Skip to content

Commit db27f15

Browse files
committed
Fix query formatting
1 parent 7415769 commit db27f15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/autosar/src/rules/A4-5-1/EnumUsedInArithmeticContexts.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ class AllowedOperatorUse extends OperatorUse {
2525
AllowedOperatorUse() {
2626
this.getOperator() in ["[]", "=", "==", "!=", "<", "<=", ">", ">="]
2727
or
28-
this.(UnaryOperatorUse).getOperator() = "&"
28+
this.(UnaryOperatorUse).getOperator() = "&"
2929
}
3030
}
3131

32-
from OperatorUse operatorUse, Access access, Enum enum
32+
from OperatorUse operatorUse, Access access, Enum enum
3333
where
3434
not isExcluded(access, ExpressionsPackage::enumUsedInArithmeticContextsQuery()) and
3535
operatorUse.getAnOperand() = access and
3636
(
3737
access.(EnumConstantAccess).getTarget().getDeclaringEnum() = enum or
38-
access.(VariableAccess).getType() = enum
38+
access.(VariableAccess).getType() = enum
3939
) and
4040
not operatorUse instanceof AllowedOperatorUse and
4141
// Enums that implement the BitmaskType trait are an exception.

0 commit comments

Comments
 (0)