Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c972403

Browse filesBrowse files
Tag as amendment3, mark 17-13 not supportable
1 parent 1007a53 commit c972403
Copy full SHA for c972403

File tree

Expand file treeCollapse file tree

3 files changed

+4
-9
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-9
lines changed

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

Copy file name to clipboardExpand all lines: c/misra/src/rules/RULE-17-12/FunctionAddressesShouldAddressOperator.ql
+1Lines 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

Copy file name to clipboardExpand all lines: rule_packages/c/FunctionTypes.json
+2-8Lines 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

Copy file name to clipboardExpand all lines: rules.csv
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.