Splint with c++ code? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Splint with c++ code?


I'm new to splint and am trying to build some autocheck for our code.
Older splint output shall be compared with output after a fix to prevent new warnings being built in.

For most of the files I'm able to do that but a line I can't get around for example is

extern "C" void usr_INIT(){}

I learned that it's possible to use -Dnonstandardkeyword=, so in this case -Dextern= 'cuts' out the extern.

For the rest of the line a parse error is generated.
-Dextern "C"=
-Dextern "C"=
-D"extern "C""=

All don't work (expectable but at least I tried :)

Is it possible to mask that out at all?


Sign In or Register to comment.