C/C++ on Linux/Unix

Moderators: Lundin
Number of threads: 314
Number of posts: 633

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Splint with c++ code? Posted by influ on 22 Feb 2011 at 7:49 AM
Hi!

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=//
-Dextern='//'
-Dextern="//"
-Dextern=\/\/
-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?

Thx
Matt




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.