[splint-discuss] Skip code parts

Jon Wilson jon.wilson at globalgraphics.com
Tue Jan 29 01:16:21 PST 2008


Matuschka, Sebastian wrote:
> Hi,
> 
> i want to skip code parts that are between "#pragma asm" and "#pragma
> endasm" because Splint ends with a parse error when it parses this code.
> I have Splint 3.1.2 and compiled it myself because I had to insert some
> hacks to let it analyze code for embedded systems. But I don't know how
> to skip code completely in a save way. I tried /*@ignore@*/ /*@end@*/
> too, but that doesn't work. It seems that it only doesn't output error
> messages but parses the code normally.
> Maybe someone has an idea how i can add a hack for this special thing,
> or if there is another annotation. Please let me know. Thanks.
> 
> Best regards
> 
> Sebastian

The easiest way is to hide it from splint with a "#ifndef S_SPLINT_S" 
conditional compilation section.

Cheers,

Jon


More information about the splint-discuss mailing list