misra: fix fp for rule 3.1
This commit is contained in:
parent
509cb35168
commit
18eff25c98
|
@ -503,7 +503,8 @@ def isNoReturnScope(tok):
|
|||
def misra_3_1(rawTokens):
|
||||
for token in rawTokens:
|
||||
if token.str.startswith('/*') or token.str.startswith('//'):
|
||||
if '//' in token.str[2:] or '/*' in token.str[2:]:
|
||||
s = token.str.lstrip('/')
|
||||
if '//' in s or '/*' in s:
|
||||
reportError(token, 3, 1)
|
||||
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ typedef signed int s32;
|
|||
typedef unsigned long long u64;
|
||||
|
||||
// // 3.1
|
||||
////
|
||||
|
||||
extern int misra_5_1_extern_var_hides_var_x;
|
||||
extern int misra_5_1_extern_var_hides_var_y; //5.1
|
||||
|
|
Loading…
Reference in New Issue