Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cpp/misra/src/rules/RULE-7-0-1/NoConversionFromBool.ql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-1
* scope/single-translation-unit
* maintainability
* readability
* correctness
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
3 changes: 3 additions & 0 deletions cpp/misra/src/rules/RULE-7-0-2/NoImplicitBoolConversion.ql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-2
* scope/single-translation-unit
* maintainability
* readability
* correctness
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
2 changes: 2 additions & 0 deletions cpp/misra/src/rules/RULE-7-0-3/NoCharacterNumericalValue.ql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-3
* scope/single-translation-unit
* maintainability
* readability
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-4
* scope/single-translation-unit
* correctness
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-5
* scope/single-translation-unit
* correctness
* maintainability
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @problem.severity error
* @tags external/misra/id/rule-7-0-6
* scope/single-translation-unit
* correctness
* maintainability
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @problem.severity error
* @tags external/misra/id/rule-7-11-3
* scope/single-translation-unit
* correctness
* readability
* external/misra/enforcement/decidable
* external/misra/obligation/required
*/
Expand Down
31 changes: 23 additions & 8 deletions rule_packages/cpp/Conversions.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"severity": "error",
"short_name": "NoConversionFromBool",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"maintainability",
"readability",
"correctness"
]
}
],
Expand All @@ -34,7 +37,10 @@
"severity": "error",
"short_name": "NoImplicitBoolConversion",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"maintainability",
"readability",
"correctness"
]
}
],
Expand All @@ -54,7 +60,9 @@
"severity": "error",
"short_name": "NoCharacterNumericalValue",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"maintainability",
"readability"
]
}
],
Expand All @@ -74,7 +82,8 @@
"severity": "error",
"short_name": "InappropriateBitwiseOrShiftOperands",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"correctness"
]
}
],
Expand All @@ -94,7 +103,9 @@
"severity": "error",
"short_name": "NoSignednessChangeFromPromotion",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"correctness",
"maintainability"
],
"implementation_scope": {
"description": "Arithmetic conversions in preprocessor directives are not supported."
Expand All @@ -117,7 +128,9 @@
"severity": "error",
"short_name": "NumericAssignmentTypeMismatch",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"correctness",
"maintainability"
]
}
],
Expand All @@ -137,11 +150,13 @@
"severity": "error",
"short_name": "FunctionPointerConversionContext",
"tags": [
"scope/single-translation-unit"
"scope/single-translation-unit",
"correctness",
"readability"
]
}
],
"title": "A conversion from function type to pointer-to-function type shall only occur in appropriate contexts"
}
}
}
}
Loading