|
| 1 | +//** THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY. **/ |
| 2 | +import cpp |
| 3 | +import RuleMetadata |
| 4 | +import codingstandards.cpp.exclusions.RuleMetadata |
| 5 | + |
| 6 | +newtype ContractsQuery = |
| 7 | + TDoNotViolateInLineLinkageConstraintsQuery() or |
| 8 | + TCheckMathLibraryFunctionParametersQuery() or |
| 9 | + TFunctionErrorInformationUntestedQuery() |
| 10 | + |
| 11 | +predicate isContractsQueryMetadata(Query query, string queryId, string ruleId, string category) { |
| 12 | + query = |
| 13 | + // `Query` instance for the `doNotViolateInLineLinkageConstraints` query |
| 14 | + ContractsPackage::doNotViolateInLineLinkageConstraintsQuery() and |
| 15 | + queryId = |
| 16 | + // `@id` for the `doNotViolateInLineLinkageConstraints` query |
| 17 | + "c/cert/do-not-violate-in-line-linkage-constraints" and |
| 18 | + ruleId = "MSC40-C" and |
| 19 | + category = "rule" |
| 20 | + or |
| 21 | + query = |
| 22 | + // `Query` instance for the `checkMathLibraryFunctionParameters` query |
| 23 | + ContractsPackage::checkMathLibraryFunctionParametersQuery() and |
| 24 | + queryId = |
| 25 | + // `@id` for the `checkMathLibraryFunctionParameters` query |
| 26 | + "c/misra/check-math-library-function-parameters" and |
| 27 | + ruleId = "DIR-4-11" and |
| 28 | + category = "required" |
| 29 | + or |
| 30 | + query = |
| 31 | + // `Query` instance for the `functionErrorInformationUntested` query |
| 32 | + ContractsPackage::functionErrorInformationUntestedQuery() and |
| 33 | + queryId = |
| 34 | + // `@id` for the `functionErrorInformationUntested` query |
| 35 | + "c/misra/function-error-information-untested" and |
| 36 | + ruleId = "DIR-4-7" and |
| 37 | + category = "required" |
| 38 | +} |
| 39 | + |
| 40 | +module ContractsPackage { |
| 41 | + Query doNotViolateInLineLinkageConstraintsQuery() { |
| 42 | + //autogenerate `Query` type |
| 43 | + result = |
| 44 | + // `Query` type for `doNotViolateInLineLinkageConstraints` query |
| 45 | + TQueryC(TContractsPackageQuery(TDoNotViolateInLineLinkageConstraintsQuery())) |
| 46 | + } |
| 47 | + |
| 48 | + Query checkMathLibraryFunctionParametersQuery() { |
| 49 | + //autogenerate `Query` type |
| 50 | + result = |
| 51 | + // `Query` type for `checkMathLibraryFunctionParameters` query |
| 52 | + TQueryC(TContractsPackageQuery(TCheckMathLibraryFunctionParametersQuery())) |
| 53 | + } |
| 54 | + |
| 55 | + Query functionErrorInformationUntestedQuery() { |
| 56 | + //autogenerate `Query` type |
| 57 | + result = |
| 58 | + // `Query` type for `functionErrorInformationUntested` query |
| 59 | + TQueryC(TContractsPackageQuery(TFunctionErrorInformationUntestedQuery())) |
| 60 | + } |
| 61 | +} |
0 commit comments