Package: cppcheck
Version: 1.44-1
Severity: normal

Hello Reijo,

cppcheck is a very useful tool, thanks for packaging it!

cppcheck does not understand pointer to function returning typedef:

%cat foo.c
typedef long* GEN;
extern GEN (*foo)(long);

%cppcheck  --enable=all foo.c
Checking foo.c...
[foo.c:2] -> [foo.c:1]: (style) Variable 'GEN' hides typedef with same name
Checking usage of global functions..

Of course the variable name is actually foo, not GEN.

Cheers,
-- 
Bill. <[email protected]>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to