Skip to content

Commit 4d160cf

Browse files
committed
Fix for cfg.standards.c
1 parent b98d19b commit 4d160cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/misra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3501,7 +3501,7 @@ def misra_17_3(self, cfg):
35013501
# this is a function pointer definition the tokens look like this int16_t ( * misra_8_2_p_a ) ()
35023502
# and the int16_t causes the detection as the '(' follows
35033503
continue
3504-
if not isKeyword(token.str) and not isStdLibId(token.str,cfg.standards.c):
3504+
if not isKeyword(token.str,cfg.standards.c) and not isStdLibId(token.str,cfg.standards.c):
35053505
self.reportError(token, 17, 3)
35063506

35073507
def misra_config(self, data):

0 commit comments

Comments
 (0)