Skip to content

Commit c972403

Browse files
Tag as amendment3, mark 17-13 not supportable
1 parent 1007a53 commit c972403

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

c/misra/src/rules/RULE-17-12/FunctionAddressesShouldAddressOperator.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @problem.severity error
99
* @tags external/misra/id/rule-17-12
1010
* readability
11+
* external/misra/c/2012/amendment3
1112
* external/misra/obligation/advisory
1213
*/
1314

rule_packages/c/FunctionTypes.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@
1313
"severity": "error",
1414
"short_name": "FunctionAddressesShouldAddressOperator",
1515
"tags": [
16-
"readability"
16+
"readability",
17+
"external/misra/c/2012/amendment3"
1718
]
1819
}
1920
],
2021
"title": "A function identifier should only be called with a parenthesized parameter list or used with a & (address-of)"
21-
},
22-
"RULE-17-13": {
23-
"properties": {
24-
"obligation": "required"
25-
},
26-
"queries": [],
27-
"title": "A function type shall not include any type qualifiers (const, volatile, restrict, or _Atomic)"
2822
}
2923
}
3024
}

rules.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ c,MISRA-C-2012,RULE-17-9,Yes,Mandatory,,,Verify that a function declared with _N
739739
c,MISRA-C-2012,RULE-17-10,Yes,Required,,,A function declared with _noreturn shall have a return type of void,,NoReturn,Easy,
740740
c,MISRA-C-2012,RULE-17-11,Yes,Advisory,,,A function without a branch that returns shall be declared with _Noreturn,,NoReturn,Easy,
741741
c,MISRA-C-2012,RULE-17-12,Yes,Advisory,,,A function identifier should only be called with a parenthesized parameter list or used with a & (address-of),,FunctionTypes,Easy,
742-
c,MISRA-C-2012,RULE-17-13,Yes,Required,,,"A function type shall not include any type qualifiers (const, volatile, restrict, or _Atomic)",,FunctionTypes,Easy,
742+
c,MISRA-C-2012,RULE-17-13,No,Required,,,"A function type shall not include any type qualifiers (const, volatile, restrict, or _Atomic)",,,Easy,
743743
c,MISRA-C-2012,RULE-18-1,Yes,Required,,,A pointer resulting from arithmetic on a pointer operand shall address an element of the same array as that pointer operand,M5-0-16,Pointers1,Import,
744744
c,MISRA-C-2012,RULE-18-2,Yes,Required,,,Subtraction between pointers shall only be applied to pointers that address elements of the same array,M5-0-17,Pointers1,Import,
745745
c,MISRA-C-2012,RULE-18-3,Yes,Required,,,"The relational operators >, >=, < and <= shall not be applied to objects of pointer type except where they point into the same object",M5-0-18,Pointers1,Import,

0 commit comments

Comments
 (0)