From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Sat, 09 May 2015 14:01:28 +0200 Subject: [Cocci] Checking for null pointers In-Reply-To: References: <554DB33D.2000000@users.sourceforge.net> <554DE908.5060009@users.sourceforge.net> <554DF181.5070707@users.sourceforge.net> Message-ID: <554DF718.80209@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > this code was implemented just to test the script. I find that such test code should generally also compile, shouldn't it? > my SmPL script will be applied to a big embedded project. Did you try any other static source code analysis tools out? https://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#C.2FC.2B.2B How many details need to be repeated by SmPL scripts for more complete checking of return values? Regards, Markus