|
| 1 | +//** THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY. **/ |
| 2 | +import cpp |
| 3 | +import RuleMetadata |
| 4 | +import codingstandards.cpp.exclusions.RuleMetadata |
| 5 | + |
| 6 | +newtype Types1Query = |
| 7 | + TExprShiftedbyNegativeOrGreaterPrecisionOperandQuery() or |
| 8 | + TConvertingAPointerToIntegerOrIntegerToPointerQuery() or |
| 9 | + TPlainNumericalTypeUsedOverExplicitTypedefQuery() or |
| 10 | + TSizeofOperatorUsedOnArrayTypeParamQuery() or |
| 11 | + TStringLiteralAssignedToNonConstCharQuery() |
| 12 | + |
| 13 | +predicate isTypes1QueryMetadata(Query query, string queryId, string ruleId, string category) { |
| 14 | + query = |
| 15 | + // `Query` instance for the `exprShiftedbyNegativeOrGreaterPrecisionOperand` query |
| 16 | + Types1Package::exprShiftedbyNegativeOrGreaterPrecisionOperandQuery() and |
| 17 | + queryId = |
| 18 | + // `@id` for the `exprShiftedbyNegativeOrGreaterPrecisionOperand` query |
| 19 | + "c/cert/expr-shiftedby-negative-or-greater-precision-operand" and |
| 20 | + ruleId = "INT34-C" and |
| 21 | + category = "rule" |
| 22 | + or |
| 23 | + query = |
| 24 | + // `Query` instance for the `convertingAPointerToIntegerOrIntegerToPointer` query |
| 25 | + Types1Package::convertingAPointerToIntegerOrIntegerToPointerQuery() and |
| 26 | + queryId = |
| 27 | + // `@id` for the `convertingAPointerToIntegerOrIntegerToPointer` query |
| 28 | + "c/cert/converting-a-pointer-to-integer-or-integer-to-pointer" and |
| 29 | + ruleId = "INT36-C" and |
| 30 | + category = "rule" |
| 31 | + or |
| 32 | + query = |
| 33 | + // `Query` instance for the `plainNumericalTypeUsedOverExplicitTypedef` query |
| 34 | + Types1Package::plainNumericalTypeUsedOverExplicitTypedefQuery() and |
| 35 | + queryId = |
| 36 | + // `@id` for the `plainNumericalTypeUsedOverExplicitTypedef` query |
| 37 | + "c/misra/plain-numerical-type-used-over-explicit-typedef" and |
| 38 | + ruleId = "DIR-4-6" and |
| 39 | + category = "advisory" |
| 40 | + or |
| 41 | + query = |
| 42 | + // `Query` instance for the `sizeofOperatorUsedOnArrayTypeParam` query |
| 43 | + Types1Package::sizeofOperatorUsedOnArrayTypeParamQuery() and |
| 44 | + queryId = |
| 45 | + // `@id` for the `sizeofOperatorUsedOnArrayTypeParam` query |
| 46 | + "c/misra/sizeof-operator-used-on-array-type-param" and |
| 47 | + ruleId = "RULE-12-5" and |
| 48 | + category = "mandatory" |
| 49 | + or |
| 50 | + query = |
| 51 | + // `Query` instance for the `stringLiteralAssignedToNonConstChar` query |
| 52 | + Types1Package::stringLiteralAssignedToNonConstCharQuery() and |
| 53 | + queryId = |
| 54 | + // `@id` for the `stringLiteralAssignedToNonConstChar` query |
| 55 | + "c/misra/string-literal-assigned-to-non-const-char" and |
| 56 | + ruleId = "RULE-7-4" and |
| 57 | + category = "required" |
| 58 | +} |
| 59 | + |
| 60 | +module Types1Package { |
| 61 | + Query exprShiftedbyNegativeOrGreaterPrecisionOperandQuery() { |
| 62 | + //autogenerate `Query` type |
| 63 | + result = |
| 64 | + // `Query` type for `exprShiftedbyNegativeOrGreaterPrecisionOperand` query |
| 65 | + TQueryC(TTypes1PackageQuery(TExprShiftedbyNegativeOrGreaterPrecisionOperandQuery())) |
| 66 | + } |
| 67 | + |
| 68 | + Query convertingAPointerToIntegerOrIntegerToPointerQuery() { |
| 69 | + //autogenerate `Query` type |
| 70 | + result = |
| 71 | + // `Query` type for `convertingAPointerToIntegerOrIntegerToPointer` query |
| 72 | + TQueryC(TTypes1PackageQuery(TConvertingAPointerToIntegerOrIntegerToPointerQuery())) |
| 73 | + } |
| 74 | + |
| 75 | + Query plainNumericalTypeUsedOverExplicitTypedefQuery() { |
| 76 | + //autogenerate `Query` type |
| 77 | + result = |
| 78 | + // `Query` type for `plainNumericalTypeUsedOverExplicitTypedef` query |
| 79 | + TQueryC(TTypes1PackageQuery(TPlainNumericalTypeUsedOverExplicitTypedefQuery())) |
| 80 | + } |
| 81 | + |
| 82 | + Query sizeofOperatorUsedOnArrayTypeParamQuery() { |
| 83 | + //autogenerate `Query` type |
| 84 | + result = |
| 85 | + // `Query` type for `sizeofOperatorUsedOnArrayTypeParam` query |
| 86 | + TQueryC(TTypes1PackageQuery(TSizeofOperatorUsedOnArrayTypeParamQuery())) |
| 87 | + } |
| 88 | + |
| 89 | + Query stringLiteralAssignedToNonConstCharQuery() { |
| 90 | + //autogenerate `Query` type |
| 91 | + result = |
| 92 | + // `Query` type for `stringLiteralAssignedToNonConstChar` query |
| 93 | + TQueryC(TTypes1PackageQuery(TStringLiteralAssignedToNonConstCharQuery())) |
| 94 | + } |
| 95 | +} |
0 commit comments