On Mon, Feb 27, 2017 at 11:37:09PM +0800, Christopher Li wrote: > On Sun, Feb 19, 2017 at 4:30 AM, Luc Van Oostenryck wrote: > > > > This is what is needed for usual declarations but ignoring extern > > symbols make it impossible to emit a diagnostic in less usual > > situation. > > I have other situation want to use this as well. ... > So the struct symbol_list **list should turn into transparent argument as > context for the call back. > ... > I prefer here just provide the default call back which is > add_stmt_decl in your case. OK. I've made the changes related to this and also prepared for something more generic (like the name of the method). I've left the arg type as 'symbol_list **' for the moment though, it will be easy enough to change when/if needed. Luc -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html