You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not record a usage for a function-like macro name without ( #773
Macro::expand() adds the use location to usageList before it checks whether a function-like macro is followed by (. So with #define F(x) x, the F in int F = 1; shows up in the macro usage list even though nothing is expanded there.
Came up in cppcheck-opensource/cppcheck#9018, where cppcheck uses the usage list to apply cppcheck-suppress-macro and that phantom usage suppressed a real zerodiv. That PR filters it on the cppcheck side for now.
Activity