We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a95ece commit 5491670Copy full SHA for 5491670
2 files changed
addons/misra.py
@@ -1985,7 +1985,7 @@ def misra_8_4(self, cfg):
1985
continue
1986
if not is_source_file(func.token.file):
1987
1988
- if func.token.file != func.tokenDef.file:
+ if func.token != func.tokenDef:
1989
1990
if func.tokenDef.str == 'main':
1991
addons/test/misra/misra-test.c
@@ -391,6 +391,8 @@ static int misra_8_2_q
391
(); // 8.2
392
393
void misra_8_4_foo(void) {} // 8.4
394
+extern void misra_8_4_func(void);
395
+void misra_8_4_func(void) {}
396
static void misra_8_4_bar(void) {} // Declared in header
397
extern int16_t misra_8_4_count; // no-warning
398
int16_t misra_8_4_count = 0; // Compliant
0 commit comments