Re: Possible code defects: macros and precedence

From: Dan Carpenter
Date: Sat Sep 03 2016 - 16:19:32 EST


No. I can't think of a way to write a script for that in smatch. It
works on the pre-processed code. There is a hack around to tell if code
is inside a macro or not, but you can't tell if code is a macro
parameter.

regards,
dan carpenter