@@ -8,6 +8,7 @@ newtype OrderOfEvaluationQuery =
8
8
TOperandsOfALogicalAndOrNotParenthesizedQuery ( ) or
9
9
TExplicitConstructionOfUnnamedTemporaryQuery ( ) or
10
10
TGratuitousUseOfParenthesesQuery ( ) or
11
+ TInsufficientUseOfParenthesesQuery ( ) or
11
12
TIncrementAndDecrementOperatorsMixedWithOtherOperatorsInExpressionQuery ( ) or
12
13
TAssignmentInSubExpressionQuery ( )
13
14
@@ -50,6 +51,15 @@ predicate isOrderOfEvaluationQueryMetadata(
50
51
ruleId = "M5-0-2" and
51
52
category = "advisory"
52
53
or
54
+ query =
55
+ // `Query` instance for the `insufficientUseOfParentheses` query
56
+ OrderOfEvaluationPackage:: insufficientUseOfParenthesesQuery ( ) and
57
+ queryId =
58
+ // `@id` for the `insufficientUseOfParentheses` query
59
+ "cpp/autosar/insufficient-use-of-parentheses" and
60
+ ruleId = "M5-0-2" and
61
+ category = "advisory"
62
+ or
53
63
query =
54
64
// `Query` instance for the `incrementAndDecrementOperatorsMixedWithOtherOperatorsInExpression` query
55
65
OrderOfEvaluationPackage:: incrementAndDecrementOperatorsMixedWithOtherOperatorsInExpressionQuery ( ) and
@@ -98,6 +108,13 @@ module OrderOfEvaluationPackage {
98
108
TQueryCPP ( TOrderOfEvaluationPackageQuery ( TGratuitousUseOfParenthesesQuery ( ) ) )
99
109
}
100
110
111
+ Query insufficientUseOfParenthesesQuery ( ) {
112
+ //autogenerate `Query` type
113
+ result =
114
+ // `Query` type for `insufficientUseOfParentheses` query
115
+ TQueryCPP ( TOrderOfEvaluationPackageQuery ( TInsufficientUseOfParenthesesQuery ( ) ) )
116
+ }
117
+
101
118
Query incrementAndDecrementOperatorsMixedWithOtherOperatorsInExpressionQuery ( ) {
102
119
//autogenerate `Query` type
103
120
result =
0 commit comments