| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2023-06-27 | indent: fix 'blank line above first statement in function body' | rillig | |
| 2023-06-26 | indent: improve heuristics for '*' as pointer in for loops | rillig | |
| 2023-06-26 | indent: improve heuristics for '*' as a pointer type | rillig | |
| 2023-06-26 | indent: implement 'blank line above first statement in function body' | rillig | |
| 2023-06-26 | indent: in -bad mode, don't add a blank line above a comment or '}' | rillig | |
| 2023-06-26 | indent: clean up indentation | rillig | |
| 2023-06-25 | indent: move cast detection from the lexer to the main processor | rillig | |
| It is not the job of the lexer to modify the parser state. | |||
| 2023-06-25 | indent: treat 'complex' and 'imaginary' as type modifiers, not as types | rillig | |
| 2023-06-25 | indent: fix formatting of parenthesized name in function definition | rillig | |
| 2023-06-25 | indent: don't use strspn on inp_p, as it is not null-terminated | rillig | |
| No functional change. | |||
| 2023-06-23 | indent: fix scanning of no-wrap comments (since 2021.11.07.10.34.03) | rillig | |
| The "refactoring" back then tried to be too clever. | |||
| 2023-06-23 | indent: properly store parser state in debug mode | rillig | |
| The stacks in the parser state are allocated now and need to be copied individually. The test whether two paren stacks are equal was broken since 2023-06-14 14:11:28. | |||
| 2023-06-18 | indent: only add blank lines before actual block comments | rillig | |
| 2023-06-18 | indent: remove support for backspace in code and comments | rillig | |
| The C code in the whole tree does not contain a single literal backspace. | |||
| 2023-06-18 | indent: untangle code for handling the statement indentation | rillig | |
| The expression 'psyms.level-- - 2' did too much in a single line, so extract the '--' to a separate statement, to highlight the symmetry between the 'sym' and 'ind_level' code. No functional change. | |||
| 2023-06-17 | indent: clean up | rillig | |
| Extract duplicate code for handling line continuations. Prevent theoretic undefined behavior in strspn, as inp.s is not null-terminated. Remove adding extra space characters when processing comments, as these are not necessary to force a line of output. No functional change. | |||
| 2023-06-17 | indent: miscellaneous cleanups | rillig | |
| No binary change. | |||
| 2023-06-16 | indent: merge lexer symbols for type in/outside parentheses | rillig | |
| 2023-06-16 | indent: add debug output for typedef declarations | rillig | |
| 2023-06-16 | indent: fix spacing between postfix operator and left parenthesis | rillig | |
| 2023-06-16 | indent: improve heuristics for cast expressions | rillig | |
| 2023-06-16 | indent: improve heuristics for cast expressions | rillig | |
| 2023-06-16 | indent: improve heuristics for casts | rillig | |
| 2023-06-16 | indent: fix indentation and linebreaks in typedef declarations | rillig | |
| 2023-06-16 | indent: don't force a blank line between '}' and preprocessing line | rillig | |
| 2023-06-16 | indent: rename a field of the parser state | rillig | |
| The previous name 'comment_in_first_line' was misleading, as it could mean that there was a comment in the first line of the file. No functional change. | |||
| 2023-06-15 | indent: consolidate handling of statement continuations | rillig | |
| 2023-06-15 | indent: rename state variable to be more accurate | rillig | |
| No binary change. | |||
| 2023-06-15 | indent: fix indentation of multi-line enum constant initializers | rillig | |
| 2023-06-15 | indent: miscellaneous cleanups, more tests for edge cases | rillig | |
| 2023-06-15 | indent: fix alignment of multi-line declarations | rillig | |
| 2023-06-14 | indent: reduce number of relocations | rillig | |
| Since all command line options modify a member of struct options, there is no need to encode that relocation 38 times. No functional change. | |||
| 2023-06-14 | indent: clean up the code, add a few tests | rillig | |
| 2023-06-14 | indent: allow more than 128 brace levels | rillig | |
| 2023-06-14 | indent: fix out-of-bounds read when reducing a statement | rillig | |
| Since parse.c 1.73 from today. The parser symbol psym_stmt_list that was removed in that commit acted as a stop symbol, so that psyms_reduce_stmt would save a memory access. | |||
| 2023-06-14 | indent: clean up array indexing for parser symbols | rillig | |
| With 'top' pointing to the actual top element, the array was indexed in the closed range from 0 to top. All other arrays are indexed by the usual half-open interval from 0 to len. No functional change. | |||
| 2023-06-14 | indent: allow more than 20 nested parentheses or brackets | rillig | |
| 2023-06-14 | indent: merge duplicate code | rillig | |
| 2023-06-14 | indent: fix formatting of comment after 'switch (expr)' | rillig | |
| 2023-06-14 | indent: use correct preprocessing directive in error message | rillig | |
| 2023-06-14 | indent: allow more than 5 levels of #if/#endif | rillig | |
| 2023-06-14 | indent: clean up debugging code | rillig | |
| 2023-06-14 | indent: clean up handling of comments | rillig | |
| One less moving part in the parser state. No functional change. | |||
| 2023-06-14 | indent: remove another flag from parser state | rillig | |
| When processing a comment, the flag ps.next_col_1 was not used for the next token, but for a line within a comment. As its scope was limited to a single comment, there is no need to store it any longer than that No functional change. | |||
| 2023-06-14 | indent: remove a redundant flag from the parser state | rillig | |
| No functional change. | |||
| 2023-06-14 | indent: merge parser symbols for stmt and stmt_list | rillig | |
| They were handled in exactly the same way. | |||
| 2023-06-10 | indent: rename misleading variable | rillig | |
| The name started with 'line_start', but the value is not always the value from the beginning of the line. No functional change. | |||
| 2023-06-10 | indent: fix debug output | rillig | |
| When the parser state was first printed, there were unintended diff markers. Treat the previous lexer symbol like the other parts of the parser state, as omitting it from the diff output is confusing. | |||
| 2023-06-10 | indent: fix line break between semicolon and brace | rillig | |
| 2023-06-10 | indent: fix stack overflow, add more tests | rillig | |
| For several parser symbols, 2 symbols are pushed in a row, which led to an out-of-bounds write. | |||
