CLANG-REORDER-FIELDS(1)

πŸ“¦
version 16.0.6 Β· 2 versions
, in debian bookworm

πŸ’– CLANG-REORDER-FIELDS πŸ’–

okay bestie, welcome to the manual page for clang-reorder-fields 16 β€” she's a user command, she's iconic, and she's about to rearrange your structs like they're your room and she's the friend who "just has a vision" πŸŽ€


🌸 NAME 🌸

clang-reorder-fields β€” the manual page for clang-reorder-fields 16, no cap ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

πŸ‘‘ OVERVIEW πŸ‘‘

so what does she DO? A tool to reorder fields in C/C++ structs/classes. that's it, that's the whole personality, and she ate πŸ’…

🌈 USAGE 🌈

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

yep, you give her one source file, or a whole lineup of them up to sourceN, and she goes to work 🫢

✨ OPTIONS ✨

Generic Options: 🌟

  • --help β€” shows you all the available options (and if you're feeling nosy, --help-hidden shows you even more πŸ‘€)
  • --help-list β€” prints out the list of available options (and yup, --help-list-hidden exists for the extra secret ones πŸ™ˆ)
  • --version β€” tells you the version of this program, because knowing things is self care πŸ’œ

clang-reorder-fields options: πŸ’–

  • --extra-arg=<string> β€” an extra argument to append to the compiler command line 🧚
  • --extra-arg-before=<string> β€” same energy, but this one gets prepended to the compiler command line instead 🌸
  • --fields-order=<string> β€” the desired fields order. the vision. the blueprint. the whole point ✨
  • -i β€” overwrite edited files. yes, that means she edits them IN PLACE, so be brave 🫑
  • -p <string> β€” build path πŸ—οΈ
  • --record-name=<string> β€” the name of the struct/class 🏷️

that's the whole page bestie, go forth and reorder responsibly πŸ¦‹

with love from clang-reorder-fields 16, dated October 2023 β€” user commands, but make it cute πŸ’–βœ¨

πŸ“¦ where this page comes from