CLANG-REORDER-FIELDS(1)
π clang-reorder-fields β the manual, but make it cute
okay bestie, so clang-reorder-fields is a User Command and this is literally its whole manual page, but with the β¨vibesβ¨ turned all the way up. it's version 19 btw. let's get into it π«Ά
β¨ NAME β¨
clang-reorder-fields β no cap, it's exactly what it sounds like: a tool that reorders fields in C/C++ structs/classes. iconic behavior honestly π
πΈ DESCRIPTION πΈ
OVERVIEW: a tool to reorder fields in C/C++ structs/classes. that's the whole mission statement, and it ate. π₯
USAGE:
clang-reorder-fields [options] <source0> [... <sourceN>]
so you pass it one or more source files (<source0>, and then ... <sourceN> if you've got a whole squad of them), plus whatever options your heart desires. main character energy fr fr. π
π OPTIONS π
okay so here's the thing β these options come in two little groups, and both are important. do not skip, bestie, we don't skip here. π
π Generic Options
the basics. the essentials. the "everyone gets these" girlies.
--helpβ displays the available options. and if you're feeling extra nosy,--help-hiddenshows you even more. π--help-listβ displays a whole list of the available options. and yes, there's a--help-list-hiddenfor more, because of course there is. β¨--versionβ displays the version of this program. (spoiler: it's 19, iykyk) π¦
π clang-reorder-fields options
the ones that make this tool this tool. the moment. the slay.
--extra-arg=<string>β an additional argument to append to the compiler command line. appending, not prepending β order matters, bestie. π--extra-arg-before=<string>β an additional argument to prepend to the compiler command line. yes, this one goes first. that's the whole difference and it's lowkey crucial. πΈ--fields-order=<string>β the desired fields order. that's it. that's the vibe you're asking for. π-iβ overwrite edited files. in-place edits, no new files, straight up committed to the bit. π₯-p <string>β build path. you point at where the build lives. π§--record-name=<string>β the name of the struct/class. tell it which one you're messing with, girl. π
β οΈ real talk though: these flags are doing actual compiler things.--extra-argand--extra-arg-beforeliterally change the compiler command line, and-iwrites straight over your files. know what you're passing before you pass it. π
π SEE ALSO π
nothing listed here in the original, bestie β this page is a solo act. π
and that's the whole page!! written up as part of clang-reorder-fields 19, dated June 2025, and honestly? she served. go reorder some fields, you've got this. π«Άβ¨π
π¦ where this page comes from
- debian bookworm: clang-tools-19 1:19.1.7-3~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- debian trixie: clang-tools-19 1:19.1.7-3+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms