CLANG-REORDER-FIELDS(1)

πŸ“¦
version 22.1.8 Β· 3 versions
, in ubuntu stonking

✨ NAME ✨

clang-reorder-fields β€” bestie, it's literally the manual page for clang-reorder-fields version 22 πŸ’–


🌸 DESCRIPTION 🌸

okay so first things first, here's the whole vibe of the tool:

πŸ‘‘ OVERVIEW

A tool to reorder fields in C/C++ structs / classes. that's the whole job. it shuffles ur fields around. no cap. πŸŽ€

🧚 USAGE

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

so u give it a bunch of source files, it does its thing. slay ✨

πŸ’… OPTIONS

⭐ Generic Options

  • --help β€” shows u all the available options, and if u want even more there's --help-hidden πŸ™ˆ
  • --help-list β€” shows u the actual list of available options, and yup, --help-list-hidden exists for the extra-secret ones 🫢
  • --version β€” tells u what version of this program ur running, iconic behavior honestly

πŸ¦‹ clang-reorder-fields options

  • --extra-arg=<string> β€” an additional argument that gets appended to the compiler command line 🧚
  • --extra-arg-before=<string> β€” same energy but it gets prepended to the compiler command line, so it goes first πŸ’œ
  • --fields-order=<string> β€” the desired fields order. this is the main character right here πŸ‘‘
  • -i β€” overwrite edited files. yes queen, it edits in place πŸ”₯
  • -p <string> β€” build path πŸ“
  • --record-name=<string> β€” the name of the struct / class ur messing with 🌈

lowkey important reminder bestie: every one of those flags is doing exactly what it says, no surprises, no drama πŸ’€

and that's the whole page fr fr. clang-reorder-fields 22, dated September 2026 β€” go forth and reorder those fields, ur struct is gonna eat and leave no crumbs πŸ’–βœ¨πŸ¦‹πŸŒΈπŸŽ€πŸ’…

πŸ“¦ where this page comes from