Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

[no sq] Reformat the code (adopted) #295

Merged
merged 10 commits into from Mar 21, 2024
Merged

Conversation

Desour
Copy link
Member

@Desour Desour commented Mar 20, 2024

Adoption of: #248

(Don't squash. PRs that need to be rebased should rebase on the "Move source/Irrlicht/ to src/" commit separately.)

@Desour Desour mentioned this pull request Mar 20, 2024
@Desour Desour added this to the Irrlicht import into Minetest milestone Mar 20, 2024
Desour and others added 4 commits March 20, 2024 19:35
find -type f |  # list all regular files
  grep -E '\.(h|cpp|mm)$' |  # filter for source files
  grep -v '/mt_' |  # filter out generated files
  grep -v '/vendor/' | # and vendored GL
  grep -v '/test/image_loader_test.cpp' |  # and this file (has giant literals arrays)
  xargs -n 1 -P $(nproc) clang-format -i  # reformat everything

Co-authored-by: numzero <numzer0@yandex.ru>
include/ECullingTypes.h Outdated Show resolved Hide resolved
Found via: `rg --multiline "=\n\t*\{\n"`
@Desour
Copy link
Member Author

Desour commented Mar 21, 2024

I noticed, that there are still tabs after non-tab characters. While we want to allow this for code samples in comments (see #248 (comment)), in other cases, it's kinda nasty.
I'll try to fix this.

find -type f |  # list all regular files
  grep -E '\.(h|cpp|mm)$' |  # filter for source files
  grep -v '/mt_' |  # filter out generated files
  grep -v '/vendor/' | # and vendored GL
  xargs -n 1 -P $(nproc) ./replace_non_leading_tabs.lua  # reformat everything
@Desour
Copy link
Member Author

Desour commented Mar 21, 2024

Removed the non-leading tabs.

@sfan5 sfan5 merged commit bcb952c into minetest:master Mar 21, 2024
19 checks passed
@Desour Desour deleted the reformat_adopt branch March 21, 2024 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants