Timur Tabi
2018-08-02 20:26:15 UTC
My cocci script (attached) ignores lines that are embedded inside other
macros. Example:
#define DB(x)Â Â x
void func()
{
   DB(if (DEBUG_IO_TRACE())
               DBG_PRINTF((DBG_MODULE_GLOBAL, DBG_LEVEL_INFO, "inb
%#04x \n", addr));)
}
Is there a way to get coccinelle to ignore the DB( and )?
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
macros. Example:
#define DB(x)Â Â x
void func()
{
   DB(if (DEBUG_IO_TRACE())
               DBG_PRINTF((DBG_MODULE_GLOBAL, DBG_LEVEL_INFO, "inb
%#04x \n", addr));)
}
Is there a way to get coccinelle to ignore the DB( and )?
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------