We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f9039e commit 947c247Copy full SHA for 947c247
2 files changed
addons/misra.py
@@ -4056,7 +4056,7 @@ def misra_22_9(self, cfg):
4056
def misra_22_10(self, cfg):
4057
last_function_call = None
4058
for token in cfg.tokenlist:
4059
- if token.isName and token.next.str == '(' and not simpleMatch(token.next.link, ') {'):
+ if token.isName and token.next and token.next.str == '(' and not simpleMatch(token.next.link, ') {'):
4060
name, args = cppcheckdata.get_function_call_name_args(token)
4061
last_function_call = name
4062
if token.str == '}':
addons/test/misra/crash11.c
@@ -0,0 +1,2 @@
1
+// #12651
2
+__arm__
0 commit comments