CLANG-REORDER-FIELDS(1)

πŸ“¦
version 20.1.8 Β· 4 versions
, in ubuntu stonking

πŸ’… clang-reorder-fields β€” the manual page, bestie edition

okay so you found the man page for clang-reorder-fields(1), which lives in the User Commands section of the manual. it's a whole vibe, let's get into it 🫢


✨ NAME ✨

clang-reorder-fields β€” manual page for clang-reorder-fields 20 πŸŽ€


🌸 DESCRIPTION 🌸

OVERVIEW: it's literally a tool to reorder fields in C/C++ structs/classes. that's it, that's the whole thing, and honestly? iconic. πŸ’–

USAGE:

clang-reorder-fields [options] <source0> [... <sourceN>]

so you pass it some <source0> and then as many more sources up to <sourceN> as you want, plus whatever options your heart desires. ✨

OPTIONS:

🌈 Generic Options {#generic-options}

these are the generic ones, the little universal besties that basically every clang tool has:

  • --help β€” shows you all the available options. and if you want the secret extra ones, hit --help-hidden for more πŸ‘€
  • --help-list β€” displays a list of the available options. want the hidden ones on the list too? --help-list-hidden for more πŸ’…
  • --version β€” tells you which version of this program you're running, no cap 🏷️

πŸ¦‹ clang-reorder-fields options {#clang-reorder-fields-options}

these are the ones that are specifically this tool's thing:

  • --extra-arg=<string> β€” an additional argument to append to the compiler command line. appending, bestie, so it goes at the end βž•
  • --extra-arg-before=<string> β€” an additional argument to prepend to the compiler command line. yep, this one goes at the front ⬅️
  • --fields-order=<string> β€” the desired fields order. this is literally the whole point of the tool, the main character of the argument list πŸ‘‘
  • -i β€” overwrite edited files. she will edit in place, she's not shy πŸ’€
  • -p <string> β€” build path πŸ› οΈ
  • --record-name=<string> β€” the name of the struct/class. yes, you have to tell her which one 🎯

real talk: -i overwrites edited files, so if you didn't mean to commit to that, maybe don't? protect your files, protect your peace πŸ™ˆ

that's the whole page, periodt. this was clang-reorder-fields version 20, dated September 2026 β€” go reorder some fields and slay πŸ’…βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from