This serie adds scope & storage validations of C99-style for-loop initializers. Patch 1 replaces the current indirect test by a direct one Patch 2-3 add test cases for the scope & storage Patch 4-5 add missing storage validation Patch 6-7 move some checks into default_process_decl(). Changes since v1: - better log message for patch 1, thanks to Ramsay Jones Changes since v2: - patches 1-3 are unchanged. - do not use 'NULL' for the default method - limit changes to parse.c, leaving external_declaration() untouched - use a more generic and exact name for the method - move a check to default_process_decl() Luc Van Oostenryck (7): replace test for c99 for-loop initializers add test case for scope of C99 for-loop declarations add test cases for storage of c99 for-loop declarations add a method to external_declaration() check the storage of C99 for-loop initializers make process_decl() aware of the presence of an initializer move check extern with initializer to default_process_decl() parse.c | 54 ++++++++++++++++++++++++++++++++---------- validation/c99-for-loop-decl.c | 40 +++++++++++++++++++++++++++++++ validation/c99-for-loop.c | 36 ++++++++++------------------ 3 files changed, 94 insertions(+), 36 deletions(-) create mode 100644 validation/c99-for-loop-decl.c -- 2.11.1 -- 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