summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-06-28tests/lint: demonstrate wrong handling of nested initializerrillig
Seen in external/bsd/jemalloc/dist/src/jemalloc.c, init_lock.
2023-06-28tests/lint: use standard form of ATF tests, test removing output filerillig
2023-06-27indent: fix 'blank line above first statement in function body'rillig
2023-06-27tests/indent: test the -badp optionrillig
2023-06-26indent: improve heuristics for '*' as pointer in for loopsrillig
2023-06-26indent: improve heuristics for '*' as a pointer typerillig
2023-06-26indent: implement 'blank line above first statement in function body'rillig
2023-06-26indent: in -bad mode, don't add a blank line above a comment or '}'rillig
2023-06-26tests/indent: strengthen requirements for test input filesrillig
Previously, 'indent run-equals-prev-output' was allowed even when there was no 'indent run' section above. This created an ambiguity, since 'previous output' could mean either the 'indent run' section or the 'indent run-equals-input' section.
2023-06-26tests/indent: extend test for -badp optionrillig
2023-06-25indent: treat 'complex' and 'imaginary' as type modifiers, not as typesrillig
2023-06-25indent: fix formatting of parenthesized name in function definitionrillig
2023-06-24lint: don't warn about comparison between char and character constantrillig
2023-06-24lint: add query for comparing 'char' with plain integersrillig
2023-06-24tests/lint: allow accept.sh to override lint1 for local testingrillig
2023-06-24lint: add query for redundant 'extern' in function declarationrillig
2023-06-24Fix typo in comment.msaitoh
2023-06-23indent: 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-23tests/indent: fix commentsrillig
2023-06-22lint: add query for comma operatorrillig
2023-06-19tests/lint: comma operators are not allowed in constant expressionsrillig
2023-06-19Repair test coverage. I revert by proxy as the committer seems too busy to ↵knakahara
even reply mail. TODO: Provide some way for small machines to run subset test so that they get shorter run time at the expense of test coverage.
2023-06-18indent: only add blank lines before actual block commentsrillig
2023-06-18indent: test block comments and the -bbb optionrillig
2023-06-18indent: remove support for backspace in code and commentsrillig
The C code in the whole tree does not contain a single literal backspace.
2023-06-17tests/indent: add miscellaneous test cases found during clean uprillig
2023-06-16indent: merge lexer symbols for type in/outside parenthesesrillig
2023-06-16tests/indent: format stderr output as end-of-line commentsrillig
This generates fewer error markers in syntax-aware editors.
2023-06-16indent: fix spacing between postfix operator and left parenthesisrillig
2023-06-16indent: improve heuristics for cast expressionsrillig
2023-06-16indent: improve heuristics for cast expressionsrillig
2023-06-16tests/indent: add a few code snippets from usr.bin/xlintrillig
2023-06-16indent: improve heuristics for castsrillig
2023-06-16indent: fix indentation and linebreaks in typedef declarationsrillig
2023-06-16tests/indent: demonstrate wrong tokenization after typedefrillig
Since 2023-06-10 06:52, which fixed the indentation of C11 _Generic expressions.
2023-06-16indent: don't force a blank line between '}' and preprocessing linerillig
2023-06-15indent: fix indentation of multi-line enum constant initializersrillig
2023-06-15indent: miscellaneous cleanups, more tests for edge casesrillig
2023-06-15indent: fix alignment of multi-line declarationsrillig
2023-06-14indent: clean up the code, add a few testsrillig
2023-06-14indent: allow more than 128 brace levelsrillig
2023-06-14tests/indent: separate stdout from stderrrillig
Due to buffering, there was no guarantee that the output would be exactly in the same order as written in the tests.
2023-06-14indent: allow more than 20 nested parentheses or bracketsrillig
2023-06-14indent: fix formatting of comment after 'switch (expr)'rillig
2023-06-14indent: use correct preprocessing directive in error messagerillig
2023-06-14indent: allow more than 5 levels of #if/#endifrillig
2023-06-14indent: clean up handling of commentsrillig
One less moving part in the parser state. No functional change.
2023-06-14indent: remove a redundant flag from the parser staterillig
No functional change.
2023-06-14indent: merge parser symbols for stmt and stmt_listrillig
They were handled in exactly the same way.
2023-06-10indent: fix line break between semicolon and bracerillig