CLANG-REORDER-FIELDS(1)

πŸ“¦
version 14.0.6 Β· 5 versions
, in ubuntu questing

✨ NAME ✨

clang-reorder-fields β€” bestie, it's the manual page for clang-reorder-fields 14, and yes she's here to rearrange the fields in your C/C++ structs and classes like she's redecorating her room πŸŽ€


πŸ’… DESCRIPTION πŸ’…

OVERVIEW: a whole tool whose entire job is reordering fields in C/C++ structs and classes. that's it. that's the girl. she does one thing and she ate. πŸ”₯

USAGE:

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

OPTIONS:

🌸 Generic Options 🌸

  • --help β€” shows you all the available options (and if you pass --help-hidden you get even more, because there's always more πŸ‘€)
  • --help-list β€” displays a list of the available options (and --help-list-hidden for even more, same energy as above)
  • --version β€” shows you the version of this program, so you can flex

πŸ¦‹ clang-reorder-fields options πŸ¦‹

  • --extra-arg=<string> β€” an additional argument to append to the compiler command line, like adding a lil something extra at the end 🫢
  • --extra-arg-before=<string> β€” an additional argument to prepend to the compiler command line, so it goes at the front, main character entrance energy πŸ‘‘
  • --fields-order=<string> β€” the desired fields order. literally what you want the fields to be ordered as. that's the whole point bestie πŸ’–
  • -i β€” overwrite edited files. no cap, it goes in and edits them in place πŸ™ˆ
  • -p=<string> β€” build path
  • --record-name=<string> β€” the name of the struct/class you're messing with
ngl, -i overwriting your files means it's touching your actual source. so maybe know what you're doing before you let her cook πŸ’€

and that's the whole page, periodt. this was clang-reorder-fields 14, from May 2025 β€” ty for coming to my ted talk, mwah πŸ’‹πŸŒˆβ­

πŸ“¦ where this page comes from