@@ -11,7 +11,8 @@ newtype UndefinedQuery =
1111 TPossibleDataRaceBetweenThreadsQuery ( ) or
1212 TDivisionByZeroUndefinedBehaviorQuery ( ) or
1313 TDeallocationTypeMismatchQuery ( ) or
14- TStringLiteralPossiblyModifiedAuditQuery ( )
14+ TStringLiteralPossiblyModifiedAuditQuery ( ) or
15+ TOutOfRangeEnumCastCriticalUnspecifiedBehaviorQuery ( )
1516
1617predicate isUndefinedQueryMetadata ( Query query , string queryId , string ruleId , string category ) {
1718 query =
@@ -85,6 +86,15 @@ predicate isUndefinedQueryMetadata(Query query, string queryId, string ruleId, s
8586 "cpp/misra/string-literal-possibly-modified-audit" and
8687 ruleId = "RULE-4-1-3" and
8788 category = "required"
89+ or
90+ query =
91+ // `Query` instance for the `outOfRangeEnumCastCriticalUnspecifiedBehavior` query
92+ UndefinedPackage:: outOfRangeEnumCastCriticalUnspecifiedBehaviorQuery ( ) and
93+ queryId =
94+ // `@id` for the `outOfRangeEnumCastCriticalUnspecifiedBehavior` query
95+ "cpp/misra/out-of-range-enum-cast-critical-unspecified-behavior" and
96+ ruleId = "RULE-4-1-3" and
97+ category = "required"
8898}
8999
90100module UndefinedPackage {
@@ -143,4 +153,11 @@ module UndefinedPackage {
143153 // `Query` type for `stringLiteralPossiblyModifiedAudit` query
144154 TQueryCPP ( TUndefinedPackageQuery ( TStringLiteralPossiblyModifiedAuditQuery ( ) ) )
145155 }
156+
157+ Query outOfRangeEnumCastCriticalUnspecifiedBehaviorQuery ( ) {
158+ //autogenerate `Query` type
159+ result =
160+ // `Query` type for `outOfRangeEnumCastCriticalUnspecifiedBehavior` query
161+ TQueryCPP ( TUndefinedPackageQuery ( TOutOfRangeEnumCastCriticalUnspecifiedBehaviorQuery ( ) ) )
162+ }
146163}
0 commit comments