1 // Look for use of expressions with side-effects inside of debug logs.
3 // This script detects expressions like ++E, --E, E++, and E-- inside of
4 // calls to log_debug().
6 // The log_debug() macro exits early if debug logging is not enabled,
7 // potentially causing problems if its arguments have side-effects.
12 *log_debug(... , <+... --E ...+>, ... );
18 *log_debug(... , <+... ++E ...+>, ... );
23 *log_debug(... , <+... E-- ...+>, ... );
29 *log_debug(... , <+... E++ ...+>, ... );