Skip to content

Commit a020c0f

Browse files
Update query metadata
1 parent a653a58 commit a020c0f

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

cpp/misra/src/rules/RULE-19-2-2/InvalidIncludeDirective.ql

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* @description Include directives shall only use the <filename> or "filename" forms.
55
* @kind problem
66
* @precision very-high
7-
* @problem.severity error
7+
* @problem.severity warning
88
* @tags external/misra/id/rule-19-2-2
99
* scope/single-translation-unit
1010
* maintainability
11-
* correctness
11+
* readability
1212
* external/misra/enforcement/decidable
1313
* external/misra/obligation/required
1414
*/

cpp/misra/src/rules/RULE-19-3-4/UnparenthesizedMacroArgument.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @description Expanded macro arguments shall be enclosed in parentheses to ensure the resulting
55
* expressions have the expected precedence and order of operations.
66
* @kind problem
7-
* @precision very-high
7+
* @precision high
88
* @problem.severity error
99
* @tags external/misra/id/rule-19-3-4
1010
* scope/single-translation-unit

cpp/misra/src/rules/RULE-19-6-1/DisallowedUseOfPragma.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* maintain code portability.
66
* @kind problem
77
* @precision very-high
8-
* @problem.severity error
8+
* @problem.severity warning
99
* @tags external/misra/id/rule-19-6-1
1010
* scope/single-translation-unit
1111
* maintainability

rule_packages/cpp/Preprocessor2.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"kind": "problem",
1212
"name": "The #include directive shall be followed by either a <filename> or \"filename\" sequence",
1313
"precision": "very-high",
14-
"severity": "error",
14+
"severity": "warning",
1515
"short_name": "InvalidIncludeDirective",
1616
"tags": [
1717
"scope/single-translation-unit",
1818
"maintainability",
19-
"correctness"
19+
"readability"
2020
]
2121
}
2222
],
@@ -32,14 +32,17 @@
3232
"description": "Expanded macro arguments shall be enclosed in parentheses to ensure the resulting expressions have the expected precedence and order of operations.",
3333
"kind": "problem",
3434
"name": "Parentheses shall be used to ensure macro arguments are expanded appropriately",
35-
"precision": "very-high",
35+
"precision": "high",
3636
"severity": "error",
3737
"short_name": "UnparenthesizedMacroArgument",
3838
"tags": [
3939
"scope/single-translation-unit",
4040
"correctness",
4141
"maintainability"
42-
]
42+
],
43+
"implementation_scope": {
44+
"description": "A mixture of textual and syntactic analysis is used to identify the problem, with positional cues being required to infer unary *, &, +, or - and semantic clues suggesting when <, >, * may refer to a type. The presence of string literals and non-critical operators ++, --, -> or unmatched parenthesis may abort the analysis. Safe cases not exempted in the rule text such as comma-separated arguments or brackets are not exempted by this query."
45+
}
4346
}
4447
],
4548
"title": "Parentheses shall be used to ensure macro arguments are expanded appropriately"
@@ -55,7 +58,7 @@
5558
"kind": "problem",
5659
"name": "The #pragma directive and the _Pragma operator should not be used",
5760
"precision": "very-high",
58-
"severity": "error",
61+
"severity": "warning",
5962
"short_name": "DisallowedUseOfPragma",
6063
"tags": [
6164
"scope/single-translation-unit",

0 commit comments

Comments
 (0)