Teach sparse about the __COUNTER__ predefined macro
__COUNTER__ macro is expanded to a sequential number starting from 0.
This is sometimes used to declare unique variable names.
Implement support for __COUNTER__ in sparse including a set of
small test programs for the test suite.
Signed-off-by: Luc Van Oostenryck <firstname.lastname@example.org>
Acked-by: Sam Ravnborg <email@example.com>
Reviewed-by: Josh Triplett <firstname.lastname@example.org>
Tested-by: Christian Borntraeger <email@example.com>
Signed-off-by: Christopher Li <firstname.lastname@example.org>
6 files changed