summaryrefslogtreecommitdiff
path: root/test cases/format
AgeCommit message (Collapse)Author
2025-10-08format: fix indentation at beginning of argumentsCharles Brunet
Fixes #14998
2025-10-01format: fix handling whitespaces after string nodeCharles Brunet
Fixes #15019
2025-09-24format: Fix indentation with parenthesesCharles Brunet
- Split long expressions in () according to max line length - Partly revert d028502 . Fixes #14935. - Fixes #15032.
2025-08-26mformat: force multiline arguments with commaCharles Brunet
Force multiline arguments when there is a trailing comma. This is the behavior of muon. Fixes #14721.
2025-04-29Fix meson format with multi line parenthesized expressionsWill Ayd
2024-09-11Fix typosspaette
2024-09-06mformat: better handling of continuation linesCharles Brunet
Fixes #13566. Fixes #13567.
2024-09-05mformat: regenerate long lines even if they're already multilineBenjamin Gilbert
If kwargs_force_multiline is enabled, an ArgumentNode in a kwarg value can already be marked multiline by the time we notice that the line needs to be broken for length. Ensure we still break the line in this case. Fixes: #13512
2024-08-20mformat: A triple string with a ' in it cannot be simplifiedDylan Baker
The following is valid meson: ```meson a = '''This string can't be simplified''' ``` which cannot be simplified because of the `'` in it, as ```meson a = 'This string can't be simplified' ``` Is invalid. Potentially we could convert that with escapes, but it seems reasonable to me to leave this, since it may be desirable to not have lots of escapes in a string. `'''I can't believe it's her's!'''` is much more readable than `'I can\'t believe it\'s her\'s!'`, for example. Closes: #13564
2024-08-20tests/format: Make the compare script more usefulDylan Baker
Now it will generate a diff of the expected value and what it actually got
2024-08-20format: fix indentation of commentsCharles Brunet
Fixes #13508 - Fix indentation of comments in arrays - Fix indentation of comments in dicts - Fix indentation of comments in if clauses - Fix indentation of comments in foreach clauses
2024-08-19mformat: correctly handle editorconfig files without the root settingDylan Baker
Which happens when a .editorconfig is in a subdirectory, not the root. In this case we need Set the fallback value to `False`, which is what editorconfig expects. Closes: #13568
2024-07-23Remove reference to GPL in test filesCharles Brunet
We have permission to use that file. Fixes #13442.
2024-06-26format: fix edge case with empty functionsCharles Brunet
format was adding a new empty line each time when trying to split a long line containing a function with no arguments
2024-06-19mformat: fix else token not correctly indentedCharles Brunet
fixes #13316
2024-06-19Fix crash in meson formatCharles Brunet
There was a case where a trailing comma was missing a whitespaces attribute Fixes #13242
2024-04-08meson format commandCharles Brunet