|
| 1 | +//** THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY. **/ |
| 2 | +import cpp |
| 3 | +import RuleMetadata |
| 4 | +import codingstandards.cpp.exclusions.RuleMetadata |
| 5 | + |
| 6 | +newtype ConversionsQuery = |
| 7 | + TNoConversionFromBoolQuery() or |
| 8 | + TNoImplicitBoolConversionQuery() or |
| 9 | + TNoCharacterNumericalValueQuery() or |
| 10 | + TInappropriateBitwiseOrShiftOperandsQuery() or |
| 11 | + TNoSignednessChangeFromPromotionQuery() or |
| 12 | + TNumericAssignmentTypeMismatchQuery() or |
| 13 | + TFunctionPointerConversionContextQuery() |
| 14 | + |
| 15 | +predicate isConversionsQueryMetadata(Query query, string queryId, string ruleId, string category) { |
| 16 | + query = |
| 17 | + // `Query` instance for the `noConversionFromBool` query |
| 18 | + ConversionsPackage::noConversionFromBoolQuery() and |
| 19 | + queryId = |
| 20 | + // `@id` for the `noConversionFromBool` query |
| 21 | + "cpp/misra/no-conversion-from-bool" and |
| 22 | + ruleId = "RULE-7-0-1" and |
| 23 | + category = "required" |
| 24 | + or |
| 25 | + query = |
| 26 | + // `Query` instance for the `noImplicitBoolConversion` query |
| 27 | + ConversionsPackage::noImplicitBoolConversionQuery() and |
| 28 | + queryId = |
| 29 | + // `@id` for the `noImplicitBoolConversion` query |
| 30 | + "cpp/misra/no-implicit-bool-conversion" and |
| 31 | + ruleId = "RULE-7-0-2" and |
| 32 | + category = "required" |
| 33 | + or |
| 34 | + query = |
| 35 | + // `Query` instance for the `noCharacterNumericalValue` query |
| 36 | + ConversionsPackage::noCharacterNumericalValueQuery() and |
| 37 | + queryId = |
| 38 | + // `@id` for the `noCharacterNumericalValue` query |
| 39 | + "cpp/misra/no-character-numerical-value" and |
| 40 | + ruleId = "RULE-7-0-3" and |
| 41 | + category = "required" |
| 42 | + or |
| 43 | + query = |
| 44 | + // `Query` instance for the `inappropriateBitwiseOrShiftOperands` query |
| 45 | + ConversionsPackage::inappropriateBitwiseOrShiftOperandsQuery() and |
| 46 | + queryId = |
| 47 | + // `@id` for the `inappropriateBitwiseOrShiftOperands` query |
| 48 | + "cpp/misra/inappropriate-bitwise-or-shift-operands" and |
| 49 | + ruleId = "RULE-7-0-4" and |
| 50 | + category = "required" |
| 51 | + or |
| 52 | + query = |
| 53 | + // `Query` instance for the `noSignednessChangeFromPromotion` query |
| 54 | + ConversionsPackage::noSignednessChangeFromPromotionQuery() and |
| 55 | + queryId = |
| 56 | + // `@id` for the `noSignednessChangeFromPromotion` query |
| 57 | + "cpp/misra/no-signedness-change-from-promotion" and |
| 58 | + ruleId = "RULE-7-0-5" and |
| 59 | + category = "required" |
| 60 | + or |
| 61 | + query = |
| 62 | + // `Query` instance for the `numericAssignmentTypeMismatch` query |
| 63 | + ConversionsPackage::numericAssignmentTypeMismatchQuery() and |
| 64 | + queryId = |
| 65 | + // `@id` for the `numericAssignmentTypeMismatch` query |
| 66 | + "cpp/misra/numeric-assignment-type-mismatch" and |
| 67 | + ruleId = "RULE-7-0-6" and |
| 68 | + category = "required" |
| 69 | + or |
| 70 | + query = |
| 71 | + // `Query` instance for the `functionPointerConversionContext` query |
| 72 | + ConversionsPackage::functionPointerConversionContextQuery() and |
| 73 | + queryId = |
| 74 | + // `@id` for the `functionPointerConversionContext` query |
| 75 | + "cpp/misra/function-pointer-conversion-context" and |
| 76 | + ruleId = "RULE-7-11-3" and |
| 77 | + category = "required" |
| 78 | +} |
| 79 | + |
| 80 | +module ConversionsPackage { |
| 81 | + Query noConversionFromBoolQuery() { |
| 82 | + //autogenerate `Query` type |
| 83 | + result = |
| 84 | + // `Query` type for `noConversionFromBool` query |
| 85 | + TQueryCPP(TConversionsPackageQuery(TNoConversionFromBoolQuery())) |
| 86 | + } |
| 87 | + |
| 88 | + Query noImplicitBoolConversionQuery() { |
| 89 | + //autogenerate `Query` type |
| 90 | + result = |
| 91 | + // `Query` type for `noImplicitBoolConversion` query |
| 92 | + TQueryCPP(TConversionsPackageQuery(TNoImplicitBoolConversionQuery())) |
| 93 | + } |
| 94 | + |
| 95 | + Query noCharacterNumericalValueQuery() { |
| 96 | + //autogenerate `Query` type |
| 97 | + result = |
| 98 | + // `Query` type for `noCharacterNumericalValue` query |
| 99 | + TQueryCPP(TConversionsPackageQuery(TNoCharacterNumericalValueQuery())) |
| 100 | + } |
| 101 | + |
| 102 | + Query inappropriateBitwiseOrShiftOperandsQuery() { |
| 103 | + //autogenerate `Query` type |
| 104 | + result = |
| 105 | + // `Query` type for `inappropriateBitwiseOrShiftOperands` query |
| 106 | + TQueryCPP(TConversionsPackageQuery(TInappropriateBitwiseOrShiftOperandsQuery())) |
| 107 | + } |
| 108 | + |
| 109 | + Query noSignednessChangeFromPromotionQuery() { |
| 110 | + //autogenerate `Query` type |
| 111 | + result = |
| 112 | + // `Query` type for `noSignednessChangeFromPromotion` query |
| 113 | + TQueryCPP(TConversionsPackageQuery(TNoSignednessChangeFromPromotionQuery())) |
| 114 | + } |
| 115 | + |
| 116 | + Query numericAssignmentTypeMismatchQuery() { |
| 117 | + //autogenerate `Query` type |
| 118 | + result = |
| 119 | + // `Query` type for `numericAssignmentTypeMismatch` query |
| 120 | + TQueryCPP(TConversionsPackageQuery(TNumericAssignmentTypeMismatchQuery())) |
| 121 | + } |
| 122 | + |
| 123 | + Query functionPointerConversionContextQuery() { |
| 124 | + //autogenerate `Query` type |
| 125 | + result = |
| 126 | + // `Query` type for `functionPointerConversionContext` query |
| 127 | + TQueryCPP(TConversionsPackageQuery(TFunctionPointerConversionContextQuery())) |
| 128 | + } |
| 129 | +} |
0 commit comments