CLANG-REORDER-FIELDS(1)

πŸ“¦
version 17.0.6 Β· 4 versions
, in debian trixie, ubuntu questing

✨ CLANG-REORDER-FIELDS ✨

okay bestie, so this is the manual page for clang-reorder-fields 17 β€” yes, the iconic little tool that rearranges the fields in your C/C++ structs and classes so they finally look the way you always imagined πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

OVERVIEW: it's giving... a tool to reorder fields in C/C++ structs/classes. that's the whole vibe. no cap. 🌸

USAGE:

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

OPTIONS: (the good stuff, keep scrolling πŸ‘‘)

🌈 Generic Options 🌈

  • --help β€” shows you all the available options (--help-hidden if you wanna see even more, secret menu energy πŸ”₯)
  • --help-list β€” shows you the list of available options (--help-list-hidden for more, again with the hidden lore πŸ™ˆ)
  • --version β€” shows you which version of this program you're running, main character reveal ⭐

πŸŽ€ clang-reorder-fields options πŸŽ€

  • --extra-arg=<string> β€” an extra argument to append to the compiler command line 🫢
  • --extra-arg-before=<string> β€” an extra argument to prepend to the compiler command line (notice it goes before, not after, we love a distinction πŸ’–)
  • --fields-order=<string> β€” the desired fields order. literally just tell it the order you want, periodt.
  • -i β€” overwrite edited files. it edits them in place, no undo button, bestie, be so careful 😭
  • -p <string> β€” build path 🧚
  • --record-name=<string> β€” the name of the struct/class πŸ“

ngl -i will just go ahead and overwrite your edited files, so maybe vibe check your git status first, fr fr πŸ’€

and that's the whole page, you ate it πŸ’œ this was clang-reorder-fields 17, dated June 2025 β€” slay, bye, go reorder some fields πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from