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

Commits on Mar 20, 2024

  1. Configuration menu
    Copy the full SHA
    eb4dec4 View commit details
    Browse the repository at this point in the history
  2. Reformat the code, using:

    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 <[email protected]>
    Desour and numberZero committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    2bf1d12 View commit details
    Browse the repository at this point in the history
  3. Remove .clang-format again

    Desour committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    565c114 View commit details
    Browse the repository at this point in the history
  4. Fix ifs clang-format didn’t get

    numberZero authored and Desour committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    d5690cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    014007b View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Fix ugly formatted arrays

    Found via: `rg --multiline "=\n\t*\{\n"`
    Desour committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    8acca66 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58783e4 View commit details
    Browse the repository at this point in the history
  3. Replace non-leading tabs with spaces, using:

    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 committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e7bbbf9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0eaf3d3 View commit details
    Browse the repository at this point in the history
  5. Move source/Irrlicht/ to src/

    Desour committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    13cd75f View commit details
    Browse the repository at this point in the history