aboutsummaryrefslogtreecommitdiff
path: root/cmake/Format.cmake
Commit message (Collapse)AuthorAge
* build: rework formatting to use add_glob_targetdundargoc2023-12-04
| | | | | | | | | | | | This will ensure that we can pass flags and make adjustments from the top level cmake file instead of digging through the cmake directory. More importantly, this will only format files that have been changed. This has a slightly higher initial cost compared to previous solution as all files must be initially formatted, but the gained speed up should more than make up for it quickly. `make formatlua` is always run due to a quirk of stylua of always changing modification time of the file regardless if there were any changes. This is not a major blocker as stylua is very fast.
* build: enable formatting during rebasedundargoc2023-10-23
| | | | Closes https://github.com/neovim/neovim/issues/25654
* build: don't format deleted filesdundargoc2023-05-18
| | | Trying to format deleted files will otherwise throw an error.
* build: add formatting targets for c and lua files (#19488)dundargoc2022-08-02
The targets will only format files that have been changed in current branch compared to the master branch. This includes unstaged, staged and committed files. Add following make and cmake targets: formatc - format changed c files formatlua - format changed lua files format - run formatc and formatlua Remove scripts/uncrustify.sh as this deprecates it.