Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Thu Nov 18 21:19:19 UTC 2021

Modified Files:
        src/distrib/sets/lists/tests: mi
        src/tests/usr.bin/indent: Makefile
Added Files:
        src/tests/usr.bin/indent: lsym_binary_op.c lsym_case_label.c
            lsym_colon.c lsym_comma.c lsym_comment.c lsym_do.c lsym_else.c
            lsym_eof.c lsym_for.c lsym_form_feed.c lsym_funcname.c lsym_if.c
            lsym_lbrace.c lsym_lparen_or_lbracket.c lsym_newline.c
            lsym_offsetof.c lsym_period.c lsym_postfix_op.c
            lsym_preprocessing.c lsym_question.c lsym_rbrace.c lsym_return.c
            lsym_rparen_or_rbracket.c lsym_semicolon.c lsym_sizeof.c
            lsym_storage_class.c lsym_string_prefix.c lsym_switch.c lsym_tag.c
            lsym_type_in_parentheses.c lsym_type_outside_parentheses.c
            lsym_typedef.c lsym_unary_op.c lsym_while.c lsym_word.c psym_decl.c
            psym_do.c psym_do_stmt.c psym_else.c psym_for_exprs.c
            psym_if_expr.c psym_if_expr_stmt.c psym_if_expr_stmt_else.c
            psym_lbrace.c psym_rbrace.c psym_semicolon.c psym_stmt.c
            psym_stmt_list.c psym_switch_expr.c psym_while_expr.c

Log Message:
tests/indent: add skeletons for testing tokens and parser symbols

The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser stack.  They
were split into separate types starting at indent.h 1.49 from 2021-10-25
and finishing at 1.73 from 2021-10-31.

To match the tests with the new token names, the old tests need to be
migrated to the newly added tests.  This will take some time so first
add the skeletons and migrate them in smaller steps, cleaning them up
and extending them on the way.


To generate a diff of this commit:
cvs rdiff -u -r1.1167 -r1.1168 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.33 -r1.34 src/tests/usr.bin/indent/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/indent/lsym_binary_op.c \
    src/tests/usr.bin/indent/lsym_case_label.c \
    src/tests/usr.bin/indent/lsym_colon.c \
    src/tests/usr.bin/indent/lsym_comma.c \
    src/tests/usr.bin/indent/lsym_comment.c \
    src/tests/usr.bin/indent/lsym_do.c src/tests/usr.bin/indent/lsym_else.c \
    src/tests/usr.bin/indent/lsym_eof.c src/tests/usr.bin/indent/lsym_for.c \
    src/tests/usr.bin/indent/lsym_form_feed.c \
    src/tests/usr.bin/indent/lsym_funcname.c \
    src/tests/usr.bin/indent/lsym_if.c src/tests/usr.bin/indent/lsym_lbrace.c \
    src/tests/usr.bin/indent/lsym_lparen_or_lbracket.c \
    src/tests/usr.bin/indent/lsym_newline.c \
    src/tests/usr.bin/indent/lsym_offsetof.c \
    src/tests/usr.bin/indent/lsym_period.c \
    src/tests/usr.bin/indent/lsym_postfix_op.c \
    src/tests/usr.bin/indent/lsym_preprocessing.c \
    src/tests/usr.bin/indent/lsym_question.c \
    src/tests/usr.bin/indent/lsym_rbrace.c \
    src/tests/usr.bin/indent/lsym_return.c \
    src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c \
    src/tests/usr.bin/indent/lsym_semicolon.c \
    src/tests/usr.bin/indent/lsym_sizeof.c \
    src/tests/usr.bin/indent/lsym_storage_class.c \
    src/tests/usr.bin/indent/lsym_string_prefix.c \
    src/tests/usr.bin/indent/lsym_switch.c \
    src/tests/usr.bin/indent/lsym_tag.c \
    src/tests/usr.bin/indent/lsym_type_in_parentheses.c \
    src/tests/usr.bin/indent/lsym_type_outside_parentheses.c \
    src/tests/usr.bin/indent/lsym_typedef.c \
    src/tests/usr.bin/indent/lsym_unary_op.c \
    src/tests/usr.bin/indent/lsym_while.c \
    src/tests/usr.bin/indent/lsym_word.c src/tests/usr.bin/indent/psym_decl.c \
    src/tests/usr.bin/indent/psym_do.c \
    src/tests/usr.bin/indent/psym_do_stmt.c \
    src/tests/usr.bin/indent/psym_else.c \
    src/tests/usr.bin/indent/psym_for_exprs.c \
    src/tests/usr.bin/indent/psym_if_expr.c \
    src/tests/usr.bin/indent/psym_if_expr_stmt.c \
    src/tests/usr.bin/indent/psym_if_expr_stmt_else.c \
    src/tests/usr.bin/indent/psym_lbrace.c \
    src/tests/usr.bin/indent/psym_rbrace.c \
    src/tests/usr.bin/indent/psym_semicolon.c \
    src/tests/usr.bin/indent/psym_stmt.c \
    src/tests/usr.bin/indent/psym_stmt_list.c \
    src/tests/usr.bin/indent/psym_switch_expr.c \
    src/tests/usr.bin/indent/psym_while_expr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index