CLANG-REORDER-FIELDS(1)
β¨ NAME β¨
ok so bestie, this is the manual page for clang-reorder-fields β the little clang tool that β¨reorders fieldsβ¨ in your C/C++ structs and classes. she's version 21, she's iconic, she's here π
πΈ DESCRIPTION πΈ
OVERVIEW: a tool to reorder fields in C/C++ structs/classes. that's it, that's the whole vibe β you tell it the order you want, it goes in and rearranges the fields for you. genuinely so satisfying π
USAGE:
clang-reorder-fields [options] <source0> [... <sourceN>]
so you pass in one or more source files β <source0> and then as many more as you want, all the way up to <sourceN> π¦ β plus whatever options you're feeling.
π OPTIONS π
π Generic Options π
these are the basics, the little starter pack, the everything-everywhere options:
--helpβ shows you all the available options. and if you're nosy (respectfully) there's--help-hiddenfor even more π--help-listβ prints out the list of available options. same deal:--help-list-hiddenfor the extra-secret ones π--versionβ tells you which version of this program you're running. spoiler: it's 21 β
π¦ clang-reorder-fields options π¦
the main-character options, the ones that actually do the reordering thing:
--extra-arg=<string>β an extra argument that gets appended to the compiler command line π₯--extra-arg-before=<string>β an extra argument that gets prepended to the compiler command line π₯ (yes, the order difference is literally the whole point)--fields-order=<string>β the desired fields order. this is the one, this is the moment, you type in the order you want and she delivers π-iβ overwrite edited files. so like, she edits them in place. no backup copy, no undo button, no take-backsies π (so maybe know what you're doing first, bestie)-p <string>β build path π--record-name=<string>β the name of the struct/class. you gotta tell her which one to reorganize, she's not a mind reader π«Ά
and that's the whole page, no cap. slay, go reorder some fields, you absolute icon πβ¨
this manual page is for clang-reorder-fields version 21, dated September 2026 β mwah, kisses, see u next release ππ
π¦ where this page comes from
- ubuntu stonking: clang-tools-21 1:21.1.8-10ubuntu2 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms