|
| 1 | +//** THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY. **/ |
| 2 | +import cpp |
| 3 | +import RuleMetadata |
| 4 | +import codingstandards.cpp.exclusions.RuleMetadata |
| 5 | + |
| 6 | +newtype UndefinedQuery = |
| 7 | + TUndefinedBehaviorQuery() or |
| 8 | + TCriticalUnspecifiedBehaviorQuery() or |
| 9 | + TUndefinedBehaviorAuditQuery() or |
| 10 | + TCriticalUnspecifiedBehaviorAuditQuery() |
| 11 | + |
| 12 | +predicate isUndefinedQueryMetadata(Query query, string queryId, string ruleId, string category) { |
| 13 | + query = |
| 14 | + // `Query` instance for the `undefinedBehavior` query |
| 15 | + UndefinedPackage::undefinedBehaviorQuery() and |
| 16 | + queryId = |
| 17 | + // `@id` for the `undefinedBehavior` query |
| 18 | + "cpp/misra/undefined-behavior" and |
| 19 | + ruleId = "RULE-4-1-3" and |
| 20 | + category = "required" |
| 21 | + or |
| 22 | + query = |
| 23 | + // `Query` instance for the `criticalUnspecifiedBehavior` query |
| 24 | + UndefinedPackage::criticalUnspecifiedBehaviorQuery() and |
| 25 | + queryId = |
| 26 | + // `@id` for the `criticalUnspecifiedBehavior` query |
| 27 | + "cpp/misra/critical-unspecified-behavior" and |
| 28 | + ruleId = "RULE-4-1-3" and |
| 29 | + category = "required" |
| 30 | + or |
| 31 | + query = |
| 32 | + // `Query` instance for the `undefinedBehaviorAudit` query |
| 33 | + UndefinedPackage::undefinedBehaviorAuditQuery() and |
| 34 | + queryId = |
| 35 | + // `@id` for the `undefinedBehaviorAudit` query |
| 36 | + "cpp/misra/undefined-behavior-audit" and |
| 37 | + ruleId = "RULE-4-1-3" and |
| 38 | + category = "required" |
| 39 | + or |
| 40 | + query = |
| 41 | + // `Query` instance for the `criticalUnspecifiedBehaviorAudit` query |
| 42 | + UndefinedPackage::criticalUnspecifiedBehaviorAuditQuery() and |
| 43 | + queryId = |
| 44 | + // `@id` for the `criticalUnspecifiedBehaviorAudit` query |
| 45 | + "cpp/misra/critical-unspecified-behavior-audit" and |
| 46 | + ruleId = "RULE-4-1-3" and |
| 47 | + category = "required" |
| 48 | +} |
| 49 | + |
| 50 | +module UndefinedPackage { |
| 51 | + Query undefinedBehaviorQuery() { |
| 52 | + //autogenerate `Query` type |
| 53 | + result = |
| 54 | + // `Query` type for `undefinedBehavior` query |
| 55 | + TQueryCPP(TUndefinedPackageQuery(TUndefinedBehaviorQuery())) |
| 56 | + } |
| 57 | + |
| 58 | + Query criticalUnspecifiedBehaviorQuery() { |
| 59 | + //autogenerate `Query` type |
| 60 | + result = |
| 61 | + // `Query` type for `criticalUnspecifiedBehavior` query |
| 62 | + TQueryCPP(TUndefinedPackageQuery(TCriticalUnspecifiedBehaviorQuery())) |
| 63 | + } |
| 64 | + |
| 65 | + Query undefinedBehaviorAuditQuery() { |
| 66 | + //autogenerate `Query` type |
| 67 | + result = |
| 68 | + // `Query` type for `undefinedBehaviorAudit` query |
| 69 | + TQueryCPP(TUndefinedPackageQuery(TUndefinedBehaviorAuditQuery())) |
| 70 | + } |
| 71 | + |
| 72 | + Query criticalUnspecifiedBehaviorAuditQuery() { |
| 73 | + //autogenerate `Query` type |
| 74 | + result = |
| 75 | + // `Query` type for `criticalUnspecifiedBehaviorAudit` query |
| 76 | + TQueryCPP(TUndefinedPackageQuery(TCriticalUnspecifiedBehaviorAuditQuery())) |
| 77 | + } |
| 78 | +} |
0 commit comments