CLANG-REORDER-FIELDS(1)

πŸ“¦ version 11.1.0, in ubuntu jammy

✨ CLANG-REORDER-FIELDS ✨

okay bestie, gather round, because this is clang-reorder-fields β€” it lives in the User Commands section of the manual, it's version 11, and it is genuinely such a slay little tool πŸ’…


πŸ’– NAME πŸ’–

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


🌸 DESCRIPTION 🌸

πŸ¦‹ OVERVIEW

OVERVIEW: a whole tool whose entire job is reordering the fields inside your C/C++ structs and classes. that's it. that's the girl. she does one thing and she eats every time ✨

🌈 USAGE

USAGE:

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

so you pass her some options, then one or more source files β€” <source0> up to <sourceN>, fr fr, you can give her a whole little pile of them 🫢

πŸ‘‘ OPTIONS

⭐ Generic Options

these are the classic "every tool has these" girlies:

  • --help β€” shows you all the options available. and if you want the hidden ones too? pass --help-hidden instead. secret menu energy πŸ’€
  • --help-list β€” prints out the list of available options. and yep, there's a --help-list-hidden for the hidden ones too πŸ“
  • --version β€” tells you what version of this program you're running. iykyk πŸ“’

🧚 clang-reorder-fields options

now the main character options, the ones that actually do the reordering:

  • --extra-arg=<string> β€” an extra argument that gets appended to the compiler command line ✨
  • --extra-arg-before=<string> β€” same idea, but this one gets prepended to the compiler command line instead. front of the line, no cuts πŸŽ€
  • --fields-order=<string> β€” the desired fields order. this is the whole point of the tool, bestie β€” you tell her the order you want 🌸
  • -i β€” overwrite edited files. she edits them in place, no copy, no backup, just vibes πŸ”₯
  • -p=<string> β€” build path πŸ¦‹
  • --record-name=<string> β€” the name of the struct/class you're targeting. you gotta tell her which one πŸ‘‘
⚠️ heads up: -i overwrites your files for real. no undo button, no take-backs. just saying πŸ’€

πŸ’œ that's a wrap πŸ’œ

and that's the whole page, bestie β€” clang-reorder-fields 11, dated January 2022, from the User Commands corner of the manual. go reorder some fields and absolutely devour πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from