aboutsummaryrefslogtreecommitdiff
path: root/tools/odinfmt/main.odin
Commit message (Collapse)AuthorAgeFilesLines
* Add defers for destroying walkersBrad Lewis7 days1-0/+1
|
* Update ols to use the new os and filepath packagesBrad Lewis7 days1-37/+43
|
* Merge pull request #1252 from gxhamster/custom-config-pathDanielGavin2026-02-011-1/+7
|\ | | | | Feat: Add support for odinfmt custom config path
| * Feat: Add support for odinfmt custom config pathIyaan Azeez2026-01-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | Introduces a new argument to -config which allows a user to pass a json config for the formatter which is not neccesarilly in the path of the files we are formatting. For now the function will use the default_style if any errors occur. This was done due to that being the pattern in the source code. I think it would be useful to know if reading a config has failed or has defaulted to a default style but, I wanted to not include that in this.
* | removed small block size used for testingTobias Mollstam2026-01-151-1/+1
| |
* | revert to using arena but virtual memory that can growTobias Mollstam2026-01-151-5/+18
| |
* | use default heap allocator instead of fixed size arena for odinfmt CLITobias Mollstam2026-01-121-17/+5
|/
* Change the behavior back so that not specifying the path to format cuases an ↵godalming1232025-09-181-7/+17
| | | | error unless odinfmt is formatting from stdin
* Use core:flags instead of custom flag parsing library and fix 2 bugsgodalming1232025-09-141-69/+24
| | | | | | - Fixes formatting not working for blank files - Fixes odinfmt not detecting the config file when `-stdin` is specified because it thinks that it is formatting the `-stdin` path - Replaces the custom arg parsing code with odin's `core:flags` library
* Check for path lengthAkseli Lahtinen2025-04-051-1/+4
|
* Add the ability to error out of the formatter.DanielGavin2024-10-051-30/+4
|
* Fix odinfmtDanielGavin2024-08-041-5/+4
|
* Include `-stdin` in args to parse.hchac2024-03-031-3/+13
|
* Automatically add shared collection.DanielGavin2024-02-221-7/+7
|
* Add custom marshal.DanielGavin2023-06-091-3/+15
|
* Update odinfmt with new filepath.Walk_Proc signatureWalther Chen2023-03-031-2/+2
| | | | | | | | | Per https://github.com/odin-lang/Odin/commit/9d50a0490530f8c602ece4c9bd56f316e169b66a an additional parameter `user_data: rawptr` was added to the `filepath.Walk_Proc` callback. This commit updates odinfmt to use the new parameter.
* updated helpJudah Caruso2022-11-181-1/+1
|
* added '-stdin' flag to odinfmt; updated .gitignoreJudah Caruso2022-11-181-17/+32
|
* Fix deprecation warningKevin Sjöberg2022-09-031-1/+1
| | | | Warning: init_arena is deprecated: prefer 'mem.arena_init'
* Finally make the move to use odinfmt in ols.Daniel Gavin2022-08-201-53/+76
|
* add support to `odinfmt.json` config for formatter.Daniel Gavin2022-08-081-9/+16
|
* Memory optimizationsDaniel Gavin2022-07-311-5/+8
|
* odinfmt: update to changes in core:memhikari2022-04-221-1/+1
|
* Add odinfmt builderDaniel Gavin2021-12-051-0/+146