Anybody here use splint?
Printable View
Anybody here use splint?
Sometimes....
what is it.. I have a feeling its some kind of debugging tool..
splint is a anal retentive syntax checker for C.
An example of what it might yell about:
It would yell because printf() returns a value so it wants you to do:Code:printf("%d\n", x);
I use it when I want to really check my code for any problems.Code:(void)printf("%d\n", x);
Note: It checks for things like security problems and such in the code also.
I was just curious about it - I have heard that using the -Wall option (on gcc of course) is a rough equivalent to the checking lint will do - the guys that do splint figure that you can do a little better with splint than lint - looks kind of like what Thantos said - really anal on syntax. It seems that for normal programming stuff its a little overkill though?